C4 Engine
C4 Engine API Documentation

Matrix3D::Orthogonalize

Defined in:  TSMatrix3D.h
Orthogonalizes the columns of a matrix.
Prototype

Matrix3D& Orthogonalize(column);

Parameters
column The index of the column whose direction does not change. This must be 0, 1, or 2.
Description
The Orthogonalize function uses Gram-Schmidt orthogonalization to orthogonalize the columns of a matrix. The column whose index is specified by the column parameter is normalized to unit length. The remaining two columns are orthogonalized and made unit length. Only the two columns not specified by the column parameter can change direction.