linearly v0.32.0Docs


linearly v0.32.0 / vec2 / squaredDistance

Function: squaredDistance()

squaredDistance(a, b): number

Calculates the squared euclidian distance between two vec2’s

Parameters

a: vec2

b: vec2

Returns

number

Shorthands

Defined in

src/vec2.ts:353open in new window