Public Member Functions | |
__construct () | |
makeIdentity () | |
mult (Matrix4x4 $m) | |
multVector (Vector4 $v) | |
__toString () | |
Protected Attributes | |
$data |
Matrix4x4::__construct | ( | ) |
Default constructor setting the matrix to the identity matrix.
Reimplemented in Projection, and Transformation.
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.
$m | 4 × 4 matrix (with 16 elements in column-major order). |
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.
$v | Four-dimensional vector. |
Matrix4x4::__toString | ( | ) |
Return the matrix as human-readable string representation.
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.