Exemplo n.º 1
0
 public double GetDistanceBtwnEdges(Cell other)
 {
     return this.GetDistanceBtwnCenters(other) - this.Radius - other.Radius;
 }
Exemplo n.º 2
0
 public double GetDistanceBtwnCenters(Cell other)
 {
     return Math.Sqrt(Math.Pow(other.x - this.x, 2) + Math.Pow(other.y - this.y, 2));
 }