DSC
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Types | Public Member Functions | List of all members
CGLA::ArithSqMat3x3Float< V, M > Class Template Reference

3 by 3 float matrix template. More...

#include <ArithSqMat3x3Float.h>

Inheritance diagram for CGLA::ArithSqMat3x3Float< V, M >:
CGLA::ArithSqMatFloat< V, M, 3 > CGLA::ArithMatFloat< V, V, M, ROWS >

Public Types

typedef V VectorType
 Vector type.
 
typedef V::ScalarType ScalarType
 The type of a matrix element.
 
- Public Types inherited from CGLA::ArithSqMatFloat< V, M, 3 >
typedef V VectorType
 Vector type.
 
typedef V::ScalarType ScalarType
 The type of a matrix element.
 
- Public Types inherited from CGLA::ArithMatFloat< V, V, M, ROWS >
typedef V HVectorType
 Horizontal vector type.
 
typedef V VVectorType
 Vertical vector type.
 
typedef V::ScalarType ScalarType
 The type of a matrix element.
 

Public Member Functions

 ArithSqMat3x3Float (V _a, V _b, V _c) noexcept
 Construct matrix from 3 Vec3f vectors.
 
 ArithSqMat3x3Float () noexcept
 Construct the 0 matrix.
 
 ArithSqMat3x3Float (ScalarType a) noexcept
 Construct a matrix from a single scalar value.
 
- Public Member Functions inherited from CGLA::ArithSqMatFloat< V, M, 3 >
const M & operator*= (const M &m2) noexcept
 
const M & operator*= (ScalarType k) noexcept
 
void identity ()
 
- Public Member Functions inherited from CGLA::ArithMatFloat< V, V, M, ROWS >
const ScalarTypeget () const
 
ScalarTypeget ()
 
const V & operator[] (unsigned int i) const
 Const index operator. Returns i'th row of matrix.
 
V & operator[] (unsigned int i)
 Non-const index operator. Returns i'th row of matrix.
 
bool operator== (const M &v) const
 Equality operator.
 
bool operator!= (const M &v) const
 Inequality operator.
 
const M operator* (ScalarType k) const
 Multiply scalar onto matrix. All entries are multiplied by scalar.
 
const M operator/ (ScalarType k) const
 Divide all entries in matrix by scalar.
 
const M & operator*= (ScalarType k)
 Assignment multiplication of matrix by scalar.
 
const M & operator/= (ScalarType k)
 Assignment division of matrix by scalar.
 
const M operator+ (const M &m1) const
 Add two matrices.
 
const M operator- (const M &m1) const
 Subtract two matrices.
 
const M operator- () const
 Negate matrix.
 
const M & operator+= (const M &v)
 Assigment addition of matrices.
 
const M & operator-= (const M &v)
 Assigment subtraction of matrices.
 

Additional Inherited Members

- Static Public Member Functions inherited from CGLA::ArithMatFloat< V, V, M, ROWS >
static unsigned int get_v_dim ()
 Get vertical dimension of matrix.
 
static unsigned int get_h_dim ()
 Get horizontal dimension of matrix.
 
- Protected Member Functions inherited from CGLA::ArithSqMatFloat< V, M, 3 >
 ArithSqMatFloat () noexcept
 Construct 0 matrix.
 
 ArithSqMatFloat (ScalarType _a) noexcept
 Construct matrix where all values are equal to constructor argument.
 
 ArithSqMatFloat (V_a, V_b) noexcept
 Construct 2x2 Matrix from two vectors.
 
 ArithSqMatFloat (V_a, V_b, V_c) noexcept
 Construct 3x3 Matrix from three vectors.
 
 ArithSqMatFloat (V_a, V_b, V_c, V_d) noexcept
 Construct 4x4 Matrix from four vectors.
 
- Protected Member Functions inherited from CGLA::ArithMatFloat< V, V, M, ROWS >
 ArithMatFloat ()
 Construct 0 matrix.
 
 ArithMatFloat (ScalarType x)
 Construct a matrix where all entries are the same.
 
 ArithMatFloat (V_a)
 Construct a matrix where all rows are the same.
 
 ArithMatFloat (V_a, V_b)
 Construct a matrix with two rows.
 
 ArithMatFloat (V_a, V_b, V_c)
 Construct a matrix with three rows.
 
 ArithMatFloat (V_a, V_b, V_c, V_d)
 Construct a matrix with four rows.
 
- Protected Attributes inherited from CGLA::ArithMatFloat< V, V, M, ROWS >
data [ROWS]
 The actual contents of the matrix.
 

Detailed Description

template<class V, class M>
class CGLA::ArithSqMat3x3Float< V, M >

3 by 3 float matrix template.

This class template will typically be used for rotation or scaling matrices for 3D vectors.


The documentation for this class was generated from the following file: