Beispiel #1
0
 /// <summary>
 /// Returns Manhattan distance to p.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceManhattan(PointD p)
 {
     return(PointDGeometry.DistanceManhattan(this, p));
 }
Beispiel #2
0
 /// <summary>
 /// Returns Manhattan distance to point x,y.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceManhattan(SmartDouble x, SmartDouble y)
 {
     return(PointDGeometry.DistanceManhattan(X, Y, x, y));
 }
Beispiel #3
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 #4
0
 /// <summary>
 /// Returns square of distance to point x,y.
 /// Is quicker than DistanceTo. Use to compare distancies for example.
 /// </summary>
 public SmartDouble DistanceSq(double x, double y)
 {
     return(PointDGeometry.DistanceSq(X, Y, x, y));
 }
Beispiel #5
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));
 }
Beispiel #6
0
 /// <summary>
 /// Returns distance to point x,y
 /// </summary>
 public SmartDouble DistancePythagorean(SmartDouble x, SmartDouble y)
 {
     return(PointDGeometry.DistancePythagorean(X, Y, x, y));
 }
Beispiel #7
0
 /// <summary>
 /// Returns distance to p.
 /// </summary>
 public SmartDouble DistancePythagorean(PointD p)
 {
     return(PointDGeometry.DistancePythagorean(this, p));
 }