C4 Engine
C4 Engine API Documentation

Vector2D::Set

Defined in:  TSVector2D.h
Sets both components of a vector.
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.