Rotates a 2D vector by a given heading angle.
Pair of rotated (x, y) components
X component of the vector
Y component of the vector
Angle in radians to rotate the vector