public AbsolutePosition increment(RelativePosition p) { if (p != null) { return(new AbsolutePosition(x + p.x, y + p.y)); } return(null); }
public double Difference(RelativePosition p1) { return Math.Pow(x - p1.x,2) + Math.Pow(y - p1.y,2); }
public AbsolutePosition increment(RelativePosition p) { if(p!=null) return new AbsolutePosition(x + p.x, y + p.y); return null; }
public double Difference(RelativePosition p1) { return(Math.Pow(x - p1.x, 2) + Math.Pow(y - p1.y, 2)); }