C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Matrix3D::SetRotationAboutAxis

Defined in:  C4Matrix3D.h
Sets a matrix to represent a rotation about a given axis.
Prototype

Matrix3D& SetRotationAboutAxis(float angle, const Vector3D& axis);

Parameters
angle The angle through which to rotate, in radians.
axis The axis about which to rotate. This vector should have unit length.
Description
The SetRotationAboutAxis function replaces all entries of a matrix with those representing a rotation about the axis given by the axis parameter through the angle given by the angle parameter.

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

Matrix3D::SetRotationAboutX

Matrix3D::SetRotationAboutY

Matrix3D::SetRotationAboutZ

Matrix3D::SetIdentity

Matrix3D::Set