/** * Returns the Euclidean distance between the specified two points. */ public static float Distance(float x1, float y1, float x2, float y2) { return(FloatMath.Sqrt(DistanceSq(x1, y1, x2, y2))); }
/** * Returns the magnitude of the specified vector. */ public static float Length(float x, float y) { return(FloatMath.Sqrt(LengthSq(x, y))); }
public float Distance(Vector other) { return(FloatMath.Sqrt(DistanceSq(other))); }