Пример #1
0
 /// <summary>
 /// Adds a point to the Points collection, ensuring
 /// there is a maximum of 4 points sorted in a uniform
 /// order about their common center
 /// </summary>
 public void Add(Vector2 point)
 {
     if (Points.Count < 4)
     {
         Points.Add(point);
         Points.Sort(new PointSorter(Points.Centroid()));
     }
 }