2D Geometric Shapes
py_fort_myrmidon.Shape
py_fort_myrmidon.Circle
py_fort_myrmidon.Capsule
py_fort_myrmidon.Polygon
- class py_fort_myrmidon.Polygon
Represents a closed polygon.
Represents a closed polygon from a list of vertices. The polygon is always considered closed. i.e.
[[1,1],[-1,1],[-1,-1],[1,-1]]
is a closed square.Note
Order matters as
[[1,1],[-1,-1],[1,-1],[-1,1]]
represents an hourglass.Example
square = py_fort_myrmidon.Polygon(Vertices = [[1,1],[-1,1],[-1,-1],[1,-1]]) hourglass = py_fort_myrmidon.Polygon(Vertices = [[1,1],[-1,-1],[1,-1],[-1,1]])
- property Vertices
a list of the polygon vertices (float64 , size [2,1])
- Type:
List[numpy.ndarray]