See this page.
public static double DistanceTo( Vector2 p, Vector2 v1, Vector2 v2 )
© Emulate3D Ltd. All rights reserved.