public override double Distance(My2DPoint b) { return(Math.Sqrt(Math.Pow((this.x - b.x), 2) + Math.Pow((this.y - b.y), 2))); }
public override double Distance(My2DPoint b) { return(Math.Abs(this.x - b.x) + Math.Abs(this.y - b.y)); }
public override double Distance(My2DPoint target) { return(Math.Abs(target.x - this.x) + Math.Abs(target.y - this.y)); }
public abstract double Distance(My2DPoint target);
public override double Distance(My2DPoint target) { return(Math.Sqrt(Math.Pow((target.x - this.x), 2) + (Math.Pow((target.y - this.y), 2)))); }