linearly v0.32.0Docs


linearly v0.32.0 / vec4 / distance

Function: distance()

distance(a, b): number

Calculates the euclidian distance between two vec4’s

Parameters

a: vec4

b: vec4

Returns

number

Defined in

src/vec4.ts:409open in new window