Quaternion::Set
Defined in:
Sets all four components of a quaternion.
TSQuaternion.h
Prototype
Quaternion& Set(float a, float b, float c, float s);
Quaternion& Set(const Vector3D& v, float s);
Parameters
a |
The new x coordinate. |
b |
The new y coordinate. |
c |
The new z coordinate. |
s |
The new w coordinate. |
v |
The new x, y, and z coordinates. |
Description
The Set
function sets the x, y, z, and w coordinates of a quaternion to the values given by the a
, b
, c
, and s
parameters, respectively. If the parameters v
and s
are supplied, then the x, y, and z coordinates are set to those of the vector v
, and the w coordinate is set to the value given by s
.The return value is a reference to the quaternion object.