Ellipse
- class nrv.utils.geom.Ellipse(center: tuple[float, float] = (0, 0), radius: tuple[float, float] = (10, 10), rot: float = None, degree: bool = False)[source]
Ellipse class that inherits from Cshape. Represents an ellipse with a center, semi-major axis, and semi-minor axis.
Attributes
Area of the ellipse. |
|
Coordinates of the axis-aligned bounding box. |
|
Size of the axis-aligned 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 Ellipse |
Generic method returning all the atributes of an NRV_class instance |
|
|
Draw random points inside the ellipse. |
|
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 ellipse around its center. |
|
Generic saving method for |
|
Generic method to set any attribute of |
|
Translate the shape. |