Added a rotation function to the Vector2 class.