function DistanceBetweenPoints(const P1, P2: Types.TPoint): Extended; overload; begin Result := Math.Hypot(P1.X - P2.X, P1.Y - P2.Y); end;