All Classes |Grouped Classes |Index

Class CL_Mat2

2D matrix More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

CL_Mat2

Constructs a 2x2 matrix (uninitialised)

null

identity

multiply

Multiply 2 matrices.

add

Add 2 matrices.

subtract

Subtract 2 matrices.


Attributes:

matrix


Operations:

multiply

Multiply this matrix and a specified matrix.

add

Add this matrix and a specified matrix.

subtract

Subtract this matrix and a specified matrix.


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+

Addition operator.

operator-

Subtract operator.

operator==

Equality operator.

operator!=

Not-equal operator.

Detailed description:

These matrix templates are defined for: int (CL_Mat2i), float (CL_Mat2f), double (CL_Mat2d)