linearly v0.32.0Docs


linearly v0.32.0 / vec2 / distance

Function: distance()

distance(a, b): number

Calculates the euclidian distance between two vec2’s

Parameters

a: vec2

b: vec2

Returns

number

Shorthands

Defined in

src/vec2.ts:335open in new window