Vec2.Distance

static float Distance(Vec2& a, Vec2& b)

   
Vec2& a The first point.
Vec2& b And the second point!
RETURNS: float Distance between the two points.

Calculates the distance between two points in space! Make sure they’re in the same coordinate space! Uses a Sqrt, so it’s not blazing fast, prefer DistanceSq when possible.