calculate_polygon_centroid#

madcubapy.utils.calculate_polygon_centroid(vertices)[source]#

Return the centroid of a polygon.

Parameters:
verticesndarray

Vertices of the polygon.

Returns:
centroidndarray

Centroid of the polygon.