public void Merge(Constellation other) { if (!CanBeMerged(other)) { throw new ArgumentException("None of a points are close enough"); } points.AddRange(other.points); }
public bool CanBeMerged(Constellation other) { return(other.points.Any(IsPointCloseEnough)); }