C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Vector2D::Rotate

Defined in:  C4Vector2D.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.