Parameters ---------- points : `~numpy.ndarray` A (2, 2) array of the form ``[[x0, y0], [x1, y1]]``.
(self, points, **kwargs)
| 771 | """ |
| 772 | |
| 773 | def __init__(self, points, **kwargs): |
| 774 | """ |
| 775 | Parameters |
| 776 | ---------- |
| 777 | points : `~numpy.ndarray` |
| 778 | A (2, 2) array of the form ``[[x0, y0], [x1, y1]]``. |
| 779 | """ |
| 780 | super().__init__(**kwargs) |
| 781 | points = np.asarray(points, float) |
| 782 | if points.shape != (2, 2): |
| 783 | raise ValueError('Bbox points must be of the form ' |
| 784 | '"[[x0, y0], [x1, y1]]".') |
| 785 | self._points = points |
| 786 | self._minpos = _default_minpos.copy() |
| 787 | self._ignore = True |
| 788 | # it is helpful in some contexts to know if the bbox is a |
| 789 | # default or has been mutated; we store the orig points to |
| 790 | # support the mutated methods |
| 791 | self._points_orig = self._points.copy() |
| 792 | if DEBUG: |
| 793 | ___init__ = __init__ |
| 794 |