Draw a circle given its center and radius.
(self, center: point_like, radius: float)
| 14969 | return self.last_point |
| 14970 | |
| 14971 | def draw_circle(self, center: point_like, radius: float) -> Point: |
| 14972 | """Draw a circle given its center and radius.""" |
| 14973 | if not radius > EPSILON: |
| 14974 | raise ValueError("radius must be positive") |
| 14975 | center = Point(center) |
| 14976 | p1 = center - (radius, 0) |
| 14977 | return self.draw_sector(center, p1, 360, fullSector=False) |
| 14978 | |
| 14979 | def draw_curve( |
| 14980 | self, |
nothing calls this directly
no test coverage detected