(self)
| 113 | |
| 114 | @cached_property |
| 115 | def width(self): |
| 116 | if len(self.vector) is 4: # bounding box and line |
| 117 | return self.vector['x2']-self.vector['x1'] |
| 118 | elif len(self.vector) > 4: |
| 119 | return max(0, self.max_x - self.min_x) |
| 120 | return 0 # pointi, polygon |
| 121 | |
| 122 | @property |
| 123 | def radius(self): |
no outgoing calls
no test coverage detected