Return a `Path` instance of the unit rectangle from (0, 0) to (1, 1).
(cls)
| 776 | |
| 777 | @classmethod |
| 778 | def unit_rectangle(cls): |
| 779 | """ |
| 780 | Return a `Path` instance of the unit rectangle from (0, 0) to (1, 1). |
| 781 | """ |
| 782 | if cls._unit_rectangle is None: |
| 783 | cls._unit_rectangle = cls([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]], |
| 784 | closed=True, readonly=True) |
| 785 | return cls._unit_rectangle |
| 786 | |
| 787 | _unit_regular_polygons = WeakValueDictionary() |
| 788 |
no outgoing calls