Replace rectangle with its finite version.
(self)
| 14771 | return math.sqrt(sum([c*c for c in self])) |
| 14772 | |
| 14773 | def normalize(self): |
| 14774 | """Replace rectangle with its finite version.""" |
| 14775 | if self.x1 < self.x0: |
| 14776 | self.x0, self.x1 = self.x1, self.x0 |
| 14777 | if self.y1 < self.y0: |
| 14778 | self.y0, self.y1 = self.y1, self.y0 |
| 14779 | return self |
| 14780 | |
| 14781 | @property |
| 14782 | def quad(self): |
no outgoing calls
no test coverage detected