Vector4D::RotateAboutAxis
Defined in: C4Vector4D.h
Rotates a vector about a given axis.
Prototype
Vector4D& RotateAboutAxis(float angle, const Vector3D& axis);
Parameters
angle |
The angle through which the vector is rotated, in radians.
|
axis |
The axis about which the vector is rotated.
|
Description
The RotateAboutAxis function rotates a vector through the angle given by the angle parameter about the axis given by the axis parameter. The w coordinate is not modified.
The return value is a reference to the vector object.
See Also
Vector4D::RotateAboutX
Vector4D::RotateAboutY
Vector4D::RotateAboutZ
|