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

3x2 double matrix class. More...

#include <Mat2x3d.h>

Inheritance diagram for CGLA::Mat3x2d:
CGLA::ArithMatFloat< Vec3d, Vec2d, Mat3x2d, 3 >

Public Member Functions

 Mat3x2d (const Vec2d &_a, const Vec2d &_b, const Vec2d &_c)
 
 Mat3x2d ()
 Construct 0 matrix.
 
- Public Member Functions inherited from CGLA::ArithMatFloat< Vec3d, Vec2d, Mat3x2d, 3 >
const ScalarTypeget () const
 
ScalarTypeget ()
 
const Vec2doperator[] (unsigned int i) const
 Const index operator. Returns i'th row of matrix.
 
Vec2doperator[] (unsigned int i)
 Non-const index operator. Returns i'th row of matrix.
 
bool operator== (const Mat3x2d &v) const
 Equality operator.
 
bool operator!= (const Mat3x2d &v) const
 Inequality operator.
 
const Mat3x2d operator* (ScalarType k) const
 Multiply scalar onto matrix. All entries are multiplied by scalar.
 
const Mat3x2d operator/ (ScalarType k) const
 Divide all entries in matrix by scalar.
 
const Mat3x2doperator*= (ScalarType k)
 Assignment multiplication of matrix by scalar.
 
const Mat3x2doperator/= (ScalarType k)
 Assignment division of matrix by scalar.
 
const Mat3x2d operator+ (const Mat3x2d &m1) const
 Add two matrices.
 
const Mat3x2d operator- (const Mat3x2d &m1) const
 Subtract two matrices.
 
const Mat3x2d operator- () const
 Negate matrix.
 
const Mat3x2doperator+= (const Mat3x2d &v)
 Assigment addition of matrices.
 
const Mat3x2doperator-= (const Mat3x2d &v)
 Assigment subtraction of matrices.
 

Additional Inherited Members

- Public Types inherited from CGLA::ArithMatFloat< Vec3d, Vec2d, Mat3x2d, 3 >
typedef Vec2d HVectorType
 Horizontal vector type.
 
typedef Vec3d VVectorType
 Vertical vector type.
 
typedef Vec2d::ScalarType ScalarType
 The type of a matrix element.
 
- Static Public Member Functions inherited from CGLA::ArithMatFloat< Vec3d, Vec2d, Mat3x2d, 3 >
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< Vec3d, Vec2d, Mat3x2d, 3 >
 ArithMatFloat ()
 Construct 0 matrix.
 
 ArithMatFloat (ScalarType x)
 Construct a matrix where all entries are the same.
 
 ArithMatFloat (Vec2d_a)
 Construct a matrix where all rows are the same.
 
 ArithMatFloat (Vec2d_a, Vec2d_b)
 Construct a matrix with two rows.
 
 ArithMatFloat (Vec2d_a, Vec2d_b, Vec2d_c)
 Construct a matrix with three rows.
 
 ArithMatFloat (Vec2d_a, Vec2d_b, Vec2d_c, Vec2d_d)
 Construct a matrix with four rows.
 
- Protected Attributes inherited from CGLA::ArithMatFloat< Vec3d, Vec2d, Mat3x2d, 3 >
Vec2d data [ROWS]
 The actual contents of the matrix.
 

Detailed Description

3x2 double matrix class.

This class is useful for going from plane to 3D coordinates.

Constructor & Destructor Documentation

CGLA::Mat3x2d::Mat3x2d ( const Vec2d _a,
const Vec2d _b,
const Vec2d _c 
)
inline

Construct matrix from three Vec2d vectors which become the rows of the matrix.


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