Beispiel #1
0
 /// <summary>
 /// Returns square of distance to point x,y.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceSq(int x, int y)
 {
     return(PointDGeometry.DistanceSq(X, Y, x, y));
 }
Beispiel #2
0
 /// <summary>
 /// Returns square of distance to point x,y.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceSq(SmartDouble x, SmartDouble y)
 {
     return(PointDGeometry.DistanceSq(X, Y, x, y));
 }
Beispiel #3
0
 /// <summary>
 /// Returns square of distance to p.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceSq(PointD p)
 {
     return(PointDGeometry.DistanceSq(this, p));
 }