Example #1
0
 public void Add(Point2D _point)
 {
     Points.Add(_point);
     Points.Sort();
 }
Example #2
0
 // ========================================
 //      Merge
 // ========================================
 /// <summary>
 /// Tells the sign value of the Y difference beetween the two points
 /// </summary>
 /// <param name="_pointA">A point</param>
 /// <param name="_pointB">Another point</param>
 /// <returns>
 /// -1 : (A.Y - B.Y) < 0
 /// 0 : (A.Y - B.Y) = 0
 /// 1 : (A.Y - B.Y) > 0
 /// </returns>
 private static int GetSignDifference(Point2D _pointA, Point2D _pointB)
 {
     return Math.Sign(_pointA.getY() - _pointB.getY());
 }