Synopsis
void mth_RotateVector2D(double angle, double a[2], double r[2])
Purpose
Rotate a 2D vector.
Description
The vector a will be rotated by the specified angle and the result will be stored in r. Both a and r can be the same address.
Input
angle
Angle (in radians) to rotate a by
a
Vector to be rotated
Output
r
The rotated vector