Esempio n. 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)));
 }
Esempio n. 2
0
 public override double Distance(My2DPoint b)
 {
     return(Math.Abs(this.x - b.x) + Math.Abs(this.y - b.y));
 }
Esempio n. 3
0
 public override double Distance(My2DPoint target)
 {
     return(Math.Abs(target.x - this.x) + Math.Abs(target.y - this.y));
 }
Esempio n. 4
0
 public abstract double Distance(My2DPoint target);
Esempio n. 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))));
 }