C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Transform4D::SetMatrix3D

Defined in:  C4Matrix4D.h
Sets the entries of the upper-left 3 × 3 portion of a matrix.
Prototype

Transform4D& SetMatrix3D(const Matrix3D& m);

Transform4D& SetMatrix3D(const Vector3D& c1, const Vector3D& c2, const Vector3D& c3);

Transform4D& SetMatrix3D(float n00, float n01, float n02, float n10, float n11, float n12,

float n20, float n21, float n22);

Parameters
m A 3 × 3 matrix that is copied to the upper-left 3 × 3 portion of the matrix.
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 SetMatrix3D function sets the entries of the upper-left 3 × 3 portion of a matrix. The fourth row and fourth column of the matrix are not modified.
See Also

Transform4D::GetMatrix3D

Transform4D::GetTranslation

Transform4D::SetTranslation