Skip to content

vec3Normalize

vec3Normalize(v): Vec3

Defined in: src/modules/math/vec3.ts:120

Unit vector pointing the same way as v. A zero-length input has no direction, so it returns { 0, 0, 0 } rather than NaN — a caller that wants a fallback direction must supply it. Matches vec2Normalize.

Vec3

Vec3