예제 #1
0
파일: Cell.cs 프로젝트: barneyCr/color_run
 public double GetDistanceBtwnEdges(Cell other)
 {
     return this.GetDistanceBtwnCenters(other) - this.Radius - other.Radius;
 }
예제 #2
0
파일: Cell.cs 프로젝트: barneyCr/color_run
 public double GetDistanceBtwnCenters(Cell other)
 {
     return Math.Sqrt(Math.Pow(other.x - this.x, 2) + Math.Pow(other.y - this.y, 2));
 }