Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::Matrix4 Class Reference

#include <Matrix4.h>

List of all members.

Public Member Functions

 Matrix4 ()
 Default constructor. Does NOT initialise data for performance.
 Matrix4 (const Matrix4 &m)
 Copy Constructor.
 Matrix4 (Vector4 &v1, Vector4 &v2, Vector4 &v3, Vector4 &v4)
 Builds a matrix from 4 vectors that serve as columns.
 Matrix4 (const float m00, const float m10, const float m20, const float m30, const float m01, const float m11, const float m21, const float m31, const float m02, const float m12, const float m22, const float m32, const float m03, const float m13, const float m23, const float m33)
 Builds a matrix from 9 values. m00, m10, m20 and m30 are the first column, and so on.
 Matrix4 (const float values[4][4])
 Builds a matrix from an array of values.
TestResult Test ()
 Tests this class and returns the result in a TestResult structure.
std::string ToString ()
 Tests this class and returns the result in a TestResult structure.
Vector4operator[] (unsigned int col)
 Array indexing operator.
const Vector4operator[] (unsigned int col) const
 Array indexing operator.
Matrix4operator= (const Matrix4 &m)
 Assign operator.
Matrix4operator+= (const Matrix4 &m)
 Adds a Matrix4 to this one.
Matrix4operator-= (const Matrix4 &m)
 Subtracts a Matrix4 from this one.
Matrix4operator *= (const Matrix4 &m)
 Multiplies the Matrix4 by another Matrix4.
Matrix4operator *= (float f)
 Multiplies the Matrix3 by a float.
Matrix4operator/= (float f)
 Divides the Matrix4 by a float.

Protected Attributes

float mat4 [4][4]

Friends

bool operator== (const Matrix4 &m1, const Matrix4 &m2)
 Are these two Matrix4's equal ?
bool operator!= (const Matrix4 &m1, const Matrix4 &m2)
 Are these two Matrix4's not equal ?
Matrix4 operator+ (const Matrix4 &m1, const Matrix4 &m2)
 Add two Matrix4's.
Matrix4 operator- (const Matrix4 &m1, const Matrix4 &m2)
 Subtracts one Matrix4 from another.
Matrix4 operator * (const Matrix4 &m1, const Matrix4 &m2)
 Multiplies a Matrix4 by another one.
Vector4 operator * (const Matrix4 &m, const Vector4 &v)
 Multiplies a Matrix4 by a Vector4.
Vector4 operator * (const Vector4 &v, const Matrix4 &m)
 Multiplies a Vector4 by a Matrix4.
Matrix4 operator * (const Matrix4 &m, float f)
 Multiplies a Matrix4 by a float.
Matrix4 operator * (float f, const Matrix4 &m)
 Multiplies a Matrix4 by a float.


Constructor & Destructor Documentation

Moteur3D::Matrix4::Matrix4  )  [inline]
 

Default constructor. Does NOT initialise data for performance.

Note that internally data is stored column-wise.

Moteur3D::Matrix4::Matrix4 const Matrix4 m  ) 
 

Copy Constructor.

Moteur3D::Matrix4::Matrix4 Vector4 v1,
Vector4 v2,
Vector4 v3,
Vector4 v4
 

Builds a matrix from 4 vectors that serve as columns.

Moteur3D::Matrix4::Matrix4 const float  m00,
const float  m10,
const float  m20,
const float  m30,
const float  m01,
const float  m11,
const float  m21,
const float  m31,
const float  m02,
const float  m12,
const float  m22,
const float  m32,
const float  m03,
const float  m13,
const float  m23,
const float  m33
 

Builds a matrix from 9 values. m00, m10, m20 and m30 are the first column, and so on.

Moteur3D::Matrix4::Matrix4 const float  values[4][4]  ) 
 

Builds a matrix from an array of values.

Parameters:
values 4x4 array of values.


Member Function Documentation

Matrix4& Moteur3D::Matrix4::operator *= float  f  )  [inline]
 

Multiplies the Matrix3 by a float.

Matrix4& Moteur3D::Matrix4::operator *= const Matrix4 m  ) 
 

Multiplies the Matrix4 by another Matrix4.

Matrix4& Moteur3D::Matrix4::operator+= const Matrix4 m  )  [inline]
 

Adds a Matrix4 to this one.

Matrix4& Moteur3D::Matrix4::operator-= const Matrix4 m  )  [inline]
 

Subtracts a Matrix4 from this one.

Matrix4& Moteur3D::Matrix4::operator/= float  f  )  [inline]
 

Divides the Matrix4 by a float.

Matrix4& Moteur3D::Matrix4::operator= const Matrix4 m  )  [inline]
 

Assign operator.

const Vector4* Moteur3D::Matrix4::operator[] unsigned int  col  )  const [inline]
 

Array indexing operator.

Vector4* Moteur3D::Matrix4::operator[] unsigned int  col  )  [inline]
 

Array indexing operator.

TestResult Moteur3D::Matrix4::Test  ) 
 

Tests this class and returns the result in a TestResult structure.

Returns:
Testresult structure that holds the success (or not) of the test as well as remarks about the success or failure.

std::string Moteur3D::Matrix4::ToString  ) 
 

Tests this class and returns the result in a TestResult structure.

Returns:
Testresult structure that holds the success (or not) of the test as well as remarks about the success or failure.


Friends And Related Function Documentation

Matrix4 operator * float  f,
const Matrix4 m
[friend]
 

Multiplies a Matrix4 by a float.

Matrix4 operator * const Matrix4 m,
float  f
[friend]
 

Multiplies a Matrix4 by a float.

Vector4 operator * const Vector4 v,
const Matrix4 m
[friend]
 

Multiplies a Vector4 by a Matrix4.

Vector4 operator * const Matrix4 m,
const Vector4 v
[friend]
 

Multiplies a Matrix4 by a Vector4.

Matrix4 operator * const Matrix4 m1,
const Matrix4 m2
[friend]
 

Multiplies a Matrix4 by another one.

bool operator!= const Matrix4 m1,
const Matrix4 m2
[friend]
 

Are these two Matrix4's not equal ?

Matrix4 operator+ const Matrix4 m1,
const Matrix4 m2
[friend]
 

Add two Matrix4's.

Matrix4 operator- const Matrix4 m1,
const Matrix4 m2
[friend]
 

Subtracts one Matrix4 from another.

bool operator== const Matrix4 m1,
const Matrix4 m2
[friend]
 

Are these two Matrix4's equal ?


Member Data Documentation

float Moteur3D::Matrix4::mat4[4][4] [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:51 2005 for Moteur3D by  doxygen 1.4.4