DSC
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | List of all members
CGLA::Mat3x3f Class Reference

3 by 3 float matrix. More...

#include <Mat3x3f.h>

Inheritance diagram for CGLA::Mat3x3f:
CGLA::ArithSqMat3x3Float< Vec3f, Mat3x3f > CGLA::ArithSqMatFloat< Vec3f, Mat3x3f, 3 > CGLA::ArithMatFloat< Vec3f, Vec3f, Mat3x3f, ROWS >

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from CGLA::ArithSqMat3x3Float< Vec3f, Mat3x3f >
typedef Vec3f VectorType
 Vector type.
 
typedef Vec3f::ScalarType ScalarType
 The type of a matrix element.
 
- Public Types inherited from CGLA::ArithSqMatFloat< Vec3f, Mat3x3f, 3 >
typedef Vec3f VectorType
 Vector type.
 
typedef Vec3f::ScalarType ScalarType
 The type of a matrix element.
 
- Public Types inherited from CGLA::ArithMatFloat< Vec3f, Vec3f, Mat3x3f, ROWS >
typedef Vec3f HVectorType
 Horizontal vector type.
 
typedef Vec3f VVectorType
 Vertical vector type.
 
typedef Vec3f::ScalarType ScalarType
 The type of a matrix element.
 
- Static Public Member Functions inherited from CGLA::ArithMatFloat< Vec3f, Vec3f, Mat3x3f, 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< Vec3f, Mat3x3f, 3 >
 ArithSqMatFloat () noexcept
 Construct 0 matrix.
 
 ArithSqMatFloat (ScalarType _a) noexcept
 Construct matrix where all values are equal to constructor argument.
 
 ArithSqMatFloat (Vec3f_a, Vec3f_b) noexcept
 Construct 2x2 Matrix from two vectors.
 
 ArithSqMatFloat (Vec3f_a, Vec3f_b, Vec3f_c) noexcept
 Construct 3x3 Matrix from three vectors.
 
 ArithSqMatFloat (Vec3f_a, Vec3f_b, Vec3f_c, Vec3f_d) noexcept
 Construct 4x4 Matrix from four vectors.
 
- Protected Member Functions inherited from CGLA::ArithMatFloat< Vec3f, Vec3f, Mat3x3f, ROWS >
 ArithMatFloat ()
 Construct 0 matrix.
 
 ArithMatFloat (ScalarType x)
 Construct a matrix where all entries are the same.
 
 ArithMatFloat (Vec3f_a)
 Construct a matrix where all rows are the same.
 
 ArithMatFloat (Vec3f_a, Vec3f_b)
 Construct a matrix with two rows.
 
 ArithMatFloat (Vec3f_a, Vec3f_b, Vec3f_c)
 Construct a matrix with three rows.
 
 ArithMatFloat (Vec3f_a, Vec3f_b, Vec3f_c, Vec3f_d)
 Construct a matrix with four rows.
 
- Protected Attributes inherited from CGLA::ArithMatFloat< Vec3f, Vec3f, Mat3x3f, ROWS >
Vec3f data [ROWS]
 The actual contents of the matrix.
 

Detailed Description

3 by 3 float matrix.

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


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