def is_convex(self): """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 """ return is_polygon_convex(self.points)
def is_convex(self): return is_polygon_convex(self.points)