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

            points.AddRange(other.points);
        }
Exemplo n.º 2
0
 public bool CanBeMerged(Constellation other)
 {
     return(other.points.Any(IsPointCloseEnough));
 }