MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / vec3Length

Function vec3Length

src/math/index.ts:70–72  ·  view source on GitHub ↗
(v: Vec3)

Source from the content-addressed store, hash-verified

68}
69
70export function vec3Length(v: Vec3): number {
71 return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);
72}
73
74export function vec3LengthSq(v: Vec3): number {
75 return v.x * v.x + v.y * v.y + v.z * v.z;

Callers 1

vec3NormalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected