Vector2D::Rotate
Defined in:
Rotates a vector in the x-y plane.
TSVector2D.h
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.