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