public static float Distance(Vector2F v1, Vector2F v2) { float d2 = (v1.X - v2.X)*(v1.X - v2.X) + (v1.Y - v2.Y)*(v1.Y - v2.Y); return (float) Math.Sqrt(d2); }
public static float Distance(Vector2F v1, Vector2F v2) { float d2 = (v1.X - v2.X) * (v1.X - v2.X) + (v1.Y - v2.Y) * (v1.Y - v2.Y); return((float)Math.Sqrt(d2)); }