[docs]classCircle(Ellipse):""" Circle class that inherits from Cshape. Represents a circle with a center and radius. """
[docs]def__init__(self,center:tuple[float,float]=(0,0),radius:float=10):""" Initializes the `Circle` Parameters ---------- center : tuple[float, float], optional Center of the shape, by default (0,0) radius : float , optional Radius of the shape, by default 10 """super().__init__(center=center,radius=(radius,radius),rot=0)self.radius=radius
@propertydefperimeter(self)->float:""" Perimeter of the shape in $\\mu m^2$ """return2*np.pi*self.r@propertydefbbox_size(self)->tuple[float,float]:return2*self.radius,2*self.radius