Circle
- class nrv.utils.geom.Circle(center: tuple[float, float] = (0, 0), radius: float = 10)[source]
Circle class that inherits from Cshape. Represents a circle with a center and radius.
Attributes
Area of the ellipse. |
|
Coordinates of the axis-aligned bounding box. |
|
Size of the circle bounding box. |
|
Center of the ellipse as an array. |
|
Indicate whether the ellipse is rotated. |
|
Perimeter of the shape in $mu m^2$ |
|
Semi-axis lengths of the ellipse. |
|
rotation matrix |
|
Inverse rotation matrix |
|
X-coordinate placeholder for 2D shapes. |
|
Y-coordinate of the shape center. |
|
Z-coordinate of the shape center. |
Methods
|
Initializes the Circle |
Generic method returning all the atributes of an NRV_class instance |
|
|
Draw random points inside the circle. |
|
Sample the ellipse boundary. |
|
Check whether one or several points lie inside the ellipse. |
|
Generic loading method for |
|
plot the border of the shape |
|
plot the border of the shape |
|
Rotate the circle. |
|
Generic saving method for |
|
Generic method to set any attribute of |
|
Translate the shape. |