linearly v0.32.0Docs


linearly v0.32.0 / vec3 / distance

Function: distance()

distance(a, b): number

Calculates the euclidian distance between two vec3’s

Parameters

a: vec3

b: vec3

Returns

number

Shorthands

Defined in

src/vec3.ts:372open in new window