Polygon.is_convex
- Polygon.is_convex()[source]
Determine if the polygon is convex.
- Returns
bool – True if the polygon is convex. False otherwise.
Examples
>>> polygon = Polygon([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.4, 0.4, 0.0], [0.0, 1.0, 0.0]]) >>> polygon.is_convex() False