C4 Engine
C4 Engine API Documentation


Defined in:  TSQuaternion.h
Sets all four components of a quaternion.

Quaternion& Set(float a, float b, float c, float s);

Quaternion& Set(const Vector3D& v, float s);

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.
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.