C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Matrix4D::GetRow

Defined in:  C4Matrix4D.h
Returns a Vector4D object containing the entries of a particular row.
Prototype

Vector4D GetRow(long i) const;

Parameters
i The index of the row. This must be 0, 1, 2, or 3.
Description
The GetRow function returns a vector containing the four entries in the row specified by the i parameter. Since matrices are stored in column-major order, this function must copy the entries into a new Vector4D object. A reference to a column of a matrix, requiring no copy, can be retrieved using the [] operator.
See Also

Matrix4D::SetRow