Matrix4x4 Class Reference

Inheritance diagram for Matrix4x4:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ()
 makeIdentity ()
 mult (Matrix4x4 $m)
 multVector (Vector4 $v)
 __toString ()

Protected Attributes

 $data


Constructor & Destructor Documentation

Matrix4x4::__construct (  ) 

Default constructor setting the matrix to the identity matrix.

Reimplemented in Projection, and Transformation.


Member Function Documentation

Matrix4x4::makeIdentity (  ) 

Set the data of the matrix to be the identity matrix.

Matrix4x4::mult ( Matrix4x4 m  ) 

Multiply two matrices. Fast matrix times matrix multiplication. The indices are “hard-coded” and therefore there are no loops.

Parameters:
$m 4 × 4 matrix (with 16 elements in column-major order).
Returns:
Resulting matrix with $result = $this · $m.

Matrix4x4::multVector ( Vector4 v  ) 

Multiply a vector with this matrix. Fast matrix times vector multiplication. The indices are “hard-coded” and therefore there are no loops.

Parameters:
$v Four-dimensional vector.
Returns:
Resulting four-dimensional vector with $result = $this · $v.

Matrix4x4::__toString (  ) 

Return the matrix as human-readable string representation.

Returns:
Matrix representation as string.


Member Data Documentation

Matrix4x4::$data [protected]

Array storing the entries of the matrix. The data is stored as array with length four (rows) of arrays with length four (columns). This means it is row-major.


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

Generated on Wed Jan 7 20:35:31 2009 for be_w3dr by  doxygen 1.5.6