Appearance
aninest root / Vec2 / distanceTo
function distanceTo(v1, v2): number
Calculates the distance between two vectors.
• v1: Vec2
Vec2
The first vector.
• v2: Vec2
The second vector.
number
A scalar.
Utils/vec2.ts:198