Returns the geometric centroid of a set of points . This is sometimes called the barycenter. It is the point of the center of mass if each point was given a unit mass. The order of the points is not used. The points are not taken to enclose area as a polygon, or any other geometric figure. In particular, the center of area of a polygon is not generally the same as the geometric centroid of its points . The centroid of a set of points is not the same as the center of the minimal bounding sphere (or circle, for a planar set of points ).
centroid ( points As List ) As Point
Argument | Type | Description |
---|---|---|
points | List | The set of points for which the centroid is required. If there are non-points in the list , they are ignored; no error is generated. |
Intent >centroid({point(-10,-10,0), point(10,10,0), point(0,0,10), point(0,0,-10)}) --> Point_(0.0, 0.0, 0.0, WorldFrame())