centroid_points_weighted

compas.geometry.centroid_points_weighted(points, weights)[source]

Compute the weighted centroid of a set of points. The weights can be any between minus and plus infinity.

Parameters:
pointssequence[[float, float, float] | compas.geometry.Point]

A list of point coordinates.

weightssequence[float]

A list of weight floats.

Returns:
[float, float, float]

The coordinates of the weighted centroid.