vec2Normalize
vec2Normalize(
v):Vec2
Defined in: src/modules/math/vec2.ts:9
Unit vector pointing the same direction as v. A zero-length input has no
direction, so it returns { x: 0, y: 0 } rather than NaN — a caller that
wants a fallback direction must supply it. Sibling of vec3Normalize.