Previous topic

xsect.calc.area

Next topic

xsect.calc.inertias

This Page

xsect.calc.centroid

xsect.calc.centroid(points)[source]

Returns the (x, y) centroid coordinates for the shape defined by the input boundary points. The result is an array of shape (2,).

Parameters:
points : array

An array of (x, y) coordinates of shape (N, 2).