nn::math::MTX23 Class

Syntax

class MTX23 : public nn::math::MTX23_

Description

A 2x3 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
MTX23 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 VEC2-type value.
GetColumn Gets a column as a VEC3-type value.
SetColumn Sets a column as a VEC3-type value.
Settings
SetupIdentity Sets as the identity matrix.
SetupScale Sets up a scaling matrix.
SetupTranslate Sets up a translation matrix.
SetupRotate Sets up a rotation matrix in XYZ order.
Operators
operator+= Assigns the values after matrix addition.
operator-= Assigns the values after matrix subtraction.
operator*= Assigns the values after matrix multiplication.
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.
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 Outputs the state.

Class Hierarchy

nn::math::MTX23_
  nn::math::MTX23

Revision History

2010/02/09
Initial version.

CONFIDENTIAL