Vector4D::Set
Defined in:
Sets all four components of a vector.
TSVector4D.h
Prototype
Vector4D& Set(float a, float b, float c, float d);
Vector4D& Set(const Vector3D& v, float d);
Parameters
a |
The new x coordinate. |
b |
The new y coordinate. |
c |
The new z coordinate. |
d |
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 a
, b
, c
, and d
parameters, respectively.The return value is a reference to the vector object.