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

2x3 float matrix class. More...

#include <Mat2x3f.h>

Inheritance diagram for CGLA::Mat2x3f:
CGLA::ArithMatFloat< Vec2f, Vec3f, Mat2x3f, 2 >

Public Member Functions

 Mat2x3f (const Vec3f &_a, const Vec3f &_b)
 Construct Mat2x3f from two Vec3f vectors (vectors become rows)
 
 Mat2x3f ()
 Construct NAN matrix.
 
- Public Member Functions inherited from CGLA::ArithMatFloat< Vec2f, Vec3f, Mat2x3f, 2 >
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 Mat2x3f &v) const
 Equality operator.
 
bool operator!= (const Mat2x3f &v) const
 Inequality operator.
 
const Mat2x3f operator* (ScalarType k) const
 Multiply scalar onto matrix. All entries are multiplied by scalar.
 
const Mat2x3f operator/ (ScalarType k) const
 Divide all entries in matrix by scalar.
 
const Mat2x3foperator*= (ScalarType k)
 Assignment multiplication of matrix by scalar.
 
const Mat2x3foperator/= (ScalarType k)
 Assignment division of matrix by scalar.
 
const Mat2x3f operator+ (const Mat2x3f &m1) const
 Add two matrices.
 
const Mat2x3f operator- (const Mat2x3f &m1) const
 Subtract two matrices.
 
const Mat2x3f operator- () const
 Negate matrix.
 
const Mat2x3foperator+= (const Mat2x3f &v)
 Assigment addition of matrices.
 
const Mat2x3foperator-= (const Mat2x3f &v)
 Assigment subtraction of matrices.
 

Additional Inherited Members

- Public Types inherited from CGLA::ArithMatFloat< Vec2f, Vec3f, Mat2x3f, 2 >
typedef Vec3f HVectorType
 Horizontal vector type.
 
typedef Vec2f VVectorType
 Vertical vector type.
 
typedef Vec3f::ScalarType ScalarType
 The type of a matrix element.
 
- Static Public Member Functions inherited from CGLA::ArithMatFloat< Vec2f, Vec3f, Mat2x3f, 2 >
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::ArithMatFloat< Vec2f, Vec3f, Mat2x3f, 2 >
 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< Vec2f, Vec3f, Mat2x3f, 2 >
Vec3f data [ROWS]
 The actual contents of the matrix.
 

Detailed Description

2x3 float matrix class.

This class is useful for projecting a vector from 3D space to 2D.


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