Convert centerline to rectangle shape.
(self)
| 258 | |
| 259 | |
| 260 | def _to_rect(self): |
| 261 | '''Convert centerline to rectangle shape.''' |
| 262 | h = self.width / 2.0 |
| 263 | x0, y0 = self._start |
| 264 | x1, y1 = self._end |
| 265 | return (x0-h, y0-h, x1+h, y1+h) |
| 266 | |
| 267 | |
| 268 | class Fill(Shape): |
no outgoing calls
no test coverage detected