C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Transform4D::SetRotationAboutX

Defined in:  C4Matrix4D.h
Sets a matrix to represent a rotation about the x axis.
Prototype

Transform4D& SetRotationAboutX(float angle);

Parameters
angle The angle through which to rotate, in radians.
Description
The SetRotationAboutX function replaces all entries of a matrix with those representing a rotation about the x axis through the angle given by the angle parameter. The entries of the fourth row and fourth column of the matrix are set to those of the identity matrix.

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

Transform4D::SetRotationAboutY

Transform4D::SetRotationAboutZ

Transform4D::SetRotationAboutAxis