The squared distance between two points, length_squared(a - b).
assert(distance_squared(xy(1, 1), xy(4, 5)) == 25);distance_squared :: (a: Vector2, b: Vector2) -> float
The squared distance between two points. Skips the square root.
Parameters
Returns
- float
distance_squared :: (a: Vector3, b: Vector3) -> float
The squared distance between two points. Skips the square root.
Parameters
Returns
- float
distance_squared :: (a: Vector4, b: Vector4) -> float
The squared distance between two points. Skips the square root.
Parameters
Returns
- float