Exemple #1
0
 public override double Distance(My2DPoint b)
 {
     return(Math.Sqrt(Math.Pow((this.x - b.x), 2) + Math.Pow((this.y - b.y), 2)));
 }
Exemple #2
0
 public override double Distance(My2DPoint b)
 {
     return(Math.Abs(this.x - b.x) + Math.Abs(this.y - b.y));
 }
Exemple #3
0
 public override double Distance(My2DPoint target)
 {
     return(Math.Abs(target.x - this.x) + Math.Abs(target.y - this.y));
 }
Exemple #4
0
 public abstract double Distance(My2DPoint target);
Exemple #5
0
 public override double Distance(My2DPoint target)
 {
     return(Math.Sqrt(Math.Pow((target.x - this.x), 2) + (Math.Pow((target.y - this.y), 2))));
 }