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
  • points (list) – A list of point coordinates.

  • weights (list) – A list of weight floats.

Returns

list – The coordinates of the weighted centroid.