C4 Engine
C4 Engine API Documentation

Transform4D::SetTranslation

Defined in:  TSMatrix4D.h
Sets the fourth column of a matrix.
Prototype

Transform4D& SetTranslation(float x, float y, float z);

Transform4D& SetTranslation(const Point3D& p);

Parameters
x The x coordinate of the translation.
y The y coordinate of the translation.
z The z coordinate of the translation.
p The 3D point whose entries are copied into the fourth column.
Description
The SetTranslation function sets the fourth column of a matrix to the point having coordinates x, y, and z or to the position given by the p parameter. The first three columns and the fourth row of the matrix are not modified.

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

Transform4D::GetTranslation

Transform4D::GetMatrix3D

Transform4D::SetMatrix3D