Home |All Classes |Grouped Classes |Index |Search

Class CL_Mat4

4D matrix More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_Mat4

Constructs a 4x4 matrix (uninitialised).

null

identity

frustum

perspective

ortho

ortho_2d

rotate

scale

translate

look_at


Attributes:

get_origin_x

Returns the x coordinate for the point (0,0,0) multiplied with this matrix.

get_origin_y

Returns the y coordinate for the point (0,0,0) multiplied with this matrix.

get_origin_z

Returns the z coordinate for the point (0,0,0) multiplied with this matrix.

matrix


Operations:

multiply

Multiply two matrices.

det

Calculate the matrix determinant.

adjoint

Calculate the adjoint (or known as adjugate) of the matrix.

inverse

Calculate the matrix inverse. (Returns a zero matrix if the determinent = 0).


Operators:

operator Type const *

Operator that returns the matrix as a array.

operator Type *

Operator that returns the matrix as a array.

operator[]

Operator that returns the matrix cell at the given index.

operator *

Multiplication operator.

operator==

Equality operator.

operator!=

Not-equal operator.

Detailed description:

These matrix templates are defined for: int, float, float