nn::math::MTX44 Class

Syntax

class MTX44 : public nn::math::MTX44_

Description

A 4x4 matrix class.

typedef Definitions

self_type This class's type.
value_type The type of this class's elements.

Member Constants

S ROW_COUNT const int The number of rows.
S COLUMN_COUNT const int The number of columns.

Member Functions

Creation
MTX44 Constructor.
Conversions
operator f32 * Casts to an f32-type value.
operator const f32 * Casts to an f32-type value.
GetRow Gets a row as a VEC4-type value.
GetColumn Gets a column as a VEC4-type value.
SetColumn Sets a column as a VEC4-type value.
Operators
operator*= Assigns the values of a post-multiplied matrix.
operator+= Assigns the values after matrix addition.
operator-= Assigns the values after matrix subtraction.
operator/= Assigns the values after matrix division.
operator+ Returns its own matrix.
operator- Returns the conjugate of the matrix.
operator * Returns the result of matrix multiplication.
operator/ Returns the result of matrix division.
Transpose Calculates the transpose.
Settings
SetupIdentity Sets as the identity matrix.
SetupScale Sets up a scaling matrix.
SetupTranslate Sets up a translation matrix.
SetupRotateXyz Sets up a rotation matrix in XYZ order.
SetupRotate Sets up a rotation matrix around the specified axis.
SetupFrustum Sets up a projection matrix based on the viewing frustum at the near clipping plane.
Note: The order of the arguments follows the OpenGL standard.
SetupOrtho Sets up an orthographic projection matrix.
Note: The order of the arguments follows the OpenGL standard.
SetupPerspective Sets up a projection matrix based on field-of-view angle and aspect ratio.
Comparisons
operator== Returns true if the values are equal.
operator!= Returns true if the values are not equal.
IsIdentity Returns true if this is an identity matrix.
Other
S Identity The identity matrix.
Report Writes matrix contents to debug output.

Class Hierarchy

nn::math::MTX44_
  nn::math::MTX44

Revision History

2010/01/29
Initial version.

CONFIDENTIAL