linearly v0.32.0 • Docs
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
linearly v0.32.0 • Docs
linearly v0.32.0 / vec2 / distance
distance(
a
,b
):number
Calculates the euclidian distance between two vec2’s
• a: vec2
• b: vec2
number