Example #1
0
        public void Merge(Constellation other)
        {
            if (!CanBeMerged(other))
            {
                throw new ArgumentException("None of a points are close enough");
            }

            points.AddRange(other.points);
        }
Example #2
0
 public bool CanBeMerged(Constellation other)
 {
     return(other.points.Any(IsPointCloseEnough));
 }