C4 Engine
C4 Engine API Documentation

Vector2D::Rotate

Defined in:  TSVector2D.h
Rotates a vector in the x-y plane.
Prototype

Vector2D& Rotate(float angle);

Parameters
angle The angle through which the vector is rotated, in radians.
Description
The Rotate function rotates a vector in the x-y plane through the angle given by the angle parameter.

The return value is a reference to the vector object.