public void Add(NPoint point) { if (!IsPointCloseEnough(point)) { throw new ArgumentException("Point is too far away"); } points.Add(point); }
public bool IsPointCloseEnough(NPoint point) { return(points.Count == 0 || points.Any(p => p.GetManhattanDistance(point) <= maxDistance)); }
public Constellation(NPoint point) : this(point.RepeatOnce()) { }