Vector2D::Set
Defined in:
Sets both components of a vector.
TSVector2D.h
Prototype
Vector2D& Set(float a, float b);
Parameters
a |
The new x coordinate. |
b |
The new y coordinate. |
Description
The Set
function sets the x and y coordinates of a vector to the values given by the a
and b
parameters, respectively.The return value is a reference to the vector object.