Transform4D::SetTranslation
Defined in:
Sets the fourth column of a matrix.
TSMatrix4D.h
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