Vector4D::Set
Defined in: C4Vector4D.h
Sets all four components of a vector.
Prototype
Vector4D& Set(float r, float s, float t, float u);
Vector4D& Set(const Vector3D& v, float u);
Parameters
r |
The new x coordinate.
|
s |
The new y coordinate.
|
t |
The new z coordinate.
|
u |
The new w coordinate.
|
v |
A 3D vector whose entries are copied to the x, y, and z coordinates.
|
Description
The Set function sets the x, y, z, and w coordinates of a vector to the values given by the r, s, t, and u parameters, respectively.
The return value is a reference to the vector object.
|