MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / draw_circle

Method draw_circle

src/__init__.py:14971–14977  ·  view source on GitHub ↗

Draw a circle given its center and radius.

(self, center: point_like, radius: float)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

draw_sectorMethod · 0.95
PointClass · 0.85

Tested by

no test coverage detected