C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Vector2D::Set

Defined in:  C4Vector2D.h
Sets both components of a vector.
Prototype

Vector2D& Set(float r, float s);

Parameters
r The new x coordinate.
s The new y coordinate.
Description
The Set function sets the x and y coordinates of a vector to the values given by the r and s parameters, respectively.

The return value is a reference to the vector object.