linearly v0.32.0Docs


linearly v0.32.0 / vec4 / squaredDistance

Function: squaredDistance()

squaredDistance(a, b): number

Calculates the squared euclidian distance between two vec4’s

Parameters

a: vec4

b: vec4

Returns

number

Shortands

Defined in

src/vec4.ts:428open in new window