y pointing down. Global class, no import.
x and y. To get a screen position from a world one, use render.worldToScreen.
Overview
Common
from, set, add, lerp, normalize…Length and distance
length, distTo, dot, cross.Rotation
rotated.Common
Every argument takes anyVec2Like, not just a Vector2.
Only
set() and normalize() change the value. Nothing changes its arguments.
Length and distance
Rotation
rotated
pivot (default (0, 0)). Positive degrees turn clockwise on screen, because y points down.