C4 Engine
C4 Engine API Documentation

Matrix2D::Orthogonalize

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

Matrix2D& Orthogonalize(column);

Parameters
column The index of the column whose direction does not change. This must be 0 or 1.
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 column is orthogonalized and made unit length. Only the column not specified by the column parameter can change direction.