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