Files Class List
cyMatrix.h File Reference

Detailed Description

2x2, 3x3, 3x4, and 4x4 matrix classes

Author
Cem Yuksel

Classes

class  Matrix2< T >
 2x2 matrix class. More...
 
class  Matrix3< T >
 3x3 matrix class. More...
 
class  Matrix34< T >
 3x4 matrix class. More...
 
class  Matrix4< T >
 4x4 matrix class. More...
 
struct  Matrix4< T >::ColVec3
 Elements of the matrix are column-major:
| 0 4 8 12 |
| 1 5 9 13 |
| 2 6 10 14 |
| 3 7 11 15 |
. More...
 

Typedefs

typedef Matrix2< float > Matrix2f
 Single precision (float) 2x2 Matrix class.
 
typedef Matrix3< float > Matrix3f
 Single precision (float) 3x3 Matrix class.
 
typedef Matrix34< float > Matrix34f
 Single precision (float) 3x4 Matrix class.
 
typedef Matrix4< float > Matrix4f
 Single precision (float) 4x4 Matrix class.
 
typedef Matrix2< double > Matrix2d
 Double precision (double) 2x2 Matrix class.
 
typedef Matrix3< double > Matrix3d
 Double precision (double) 3x3 Matrix class.
 
typedef Matrix34< double > Matrix34d
 Double precision (double) 3x4 Matrix class.
 
typedef Matrix4< double > Matrix4d
 Double precision (double) 4x4 Matrix class.
 
typedef cy::Matrix2f cyMatrix2f
 Single precision (float) 2x2 Matrix class.
 
typedef cy::Matrix3f cyMatrix3f
 Single precision (float) 3x3 Matrix class.
 
typedef cy::Matrix34f cyMatrix34f
 Single precision (float) 3x4 Matrix class.
 
typedef cy::Matrix4f cyMatrix4f
 Single precision (float) 4x4 Matrix class.
 
typedef cy::Matrix2d cyMatrix2d
 Double precision (double) 2x2 Matrix class.
 
typedef cy::Matrix3d cyMatrix3d
 Double precision (double) 3x3 Matrix class.
 
typedef cy::Matrix34d cyMatrix34d
 Double precision (double) 3x4 Matrix class.
 
typedef cy::Matrix4d cyMatrix4d
 Double precision (double) 4x4 Matrix class.
 

Functions

template<typename T >
Matrix2< T > operator& (Vec2< T > const &v0, Vec2< T > const &v1)
 tensor product (outer product) of two vectors
 
template<typename T >
Matrix3< T > operator& (Vec3< T > const &v0, Vec3< T > const &v1)
 tensor product (outer product) of two vectors
 
template<typename T >
Matrix4< T > operator& (Vec4< T > const &v0, Vec4< T > const &v1)
 tensor product (outer product) of two vectors