Vec2.DistanceSq
static float DistanceSq(Vec2 a, Vec2 b)
Calculates the distance between two points in space, but leaves them squared! Make sure they’re in the same coordinate space! This is a fast function :)
| Vec2 a | The first point. |
| Vec2 b | And the second point! |
| RETURNS: float | Distance between the two points, but squared! |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!