linearly v0.32.0Docs


linearly v0.32.0 / vec3 / squaredDistance

Function: squaredDistance()

squaredDistance(a, b): number

Calculates the squared euclidian distance between two vec3’s

Parameters

a: vec3

b: vec3

Returns

number

Defined in

src/vec3.ts:388open in new window