# 2D Coordinate Rotation

A 2D coordinate can be easily rotated by around another point to give the new rotated point with the equation:

The angle is positive for a counter-clockwise rotation. You may notice that the coordinate is translated as if  was the origin, the rotation transformation is applied, and then it is translated back into position.