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