C4 Engine
C4 Engine API Documentation

Matrix2D::Set

Defined in:  TSMatrix2D.h
Sets all four entries of a matrix.
Prototype

Matrix2D& Set(float n00, float n01, float n10, float n11);

Matrix2D& Set(const Vector2D& a, const Vector2D& b);

Parameters
nij The new value of the entry residing in row i and column j.
a The new values of the entries residing in first column.
b The new values of the entries residing in second column.
Description
The Set function sets all four entries of a matrix, either by specifying each entry individually or by specifying each of the two columns as 2D vectors.

The return value is a reference to the matrix object.
See Also

Matrix2D::SetIdentity

Matrix2D::MakeRotation