Polygon
- class nrv.utils.geom.Polygon(vertices: tuple[float, float] = [[0, 0], [0, 1], [1, 0]])[source]
Polygon class that inherits from Cshape. Represents an polygon eiher from its vertices positions.
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$ |
|
Methods
|
|
Generic method returning all the atributes of an NRV_class instance |
|
|
Returns n points coordinate randomly picked inside the shape |
|
Get the trace of the ellipse. |
|
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. |