def __init__(self, points: Iterable['SlfPoint']): ps = iter(ensure_min_items(2, points)) self._bottom_right_corner = next(ps) self._top_left_corner = next(ps)
def __init__(self, points: Iterable['SlfPoint']): self._pts = ensure_min_items(4, points)