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 shape in $mu m^2$ |
|
Coordinate of the bounding box as a |
|
Size of the bounding bounding box of the shape. |
|
Perimeter of the shape in $mu m^2$ |
|
rotation matrix |
|
Inverse rotation matrix |
|
Methods
|
Initializes the Ellipse |
Generic method returning all the atributes of an NRV_class instance |
|
|
Returns n points coordinate randomly picked inside the shape |
|
Returns the trace of the geometry as a list of points. |
|
Checks if a given point is inside the C-shape. |
|
Generic loading method for |
|
plot the border of the shape |
|
plot the border of the shape |
|
Rotate the shape. |
|
Generic saving method for |
|
Generic method to set any attribute of |
|
Translate the shape. |