C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Matrix3D::Set

Defined in:  C4Matrix3D.h
Sets all nine entries of a matrix.
Prototype

Matrix3D& Set(const Vector3D& c1, const Vector3D& c2, const Vector3D& c3);

Matrix3D& Set(float n00, float n01, float n02, float n10, float n11, float n12, float n20, float n21, float n22);

Parameters
c1 The new values of the entries residing in first column.
c2 The new values of the entries residing in second column.
c3 The new values of the entries residing in third column.
nij The new value of the entry residing in row i and column j.
Description
The Set function sets all nine entries of a matrix, either by specifying each entry individually or by specifying each of the three columns as 3D vectors.

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

Matrix3D::SetIdentity

Matrix3D::SetRotationAboutX

Matrix3D::SetRotationAboutY

Matrix3D::SetRotationAboutZ

Matrix3D::SetRotationAboutAxis