Construct a rectangle.
(w: float, h: float)
| 6290 | |
| 6291 | |
| 6292 | def rect(w: float, h: float) -> Wire: |
| 6293 | """ |
| 6294 | Construct a rectangle. |
| 6295 | """ |
| 6296 | |
| 6297 | return polygon( |
| 6298 | (-w / 2, -h / 2, 0), (w / 2, -h / 2, 0), (w / 2, h / 2, 0), (-w / 2, h / 2, 0) |
| 6299 | ) |
| 6300 | |
| 6301 | |
| 6302 | @multimethod |