Calculates the centroid of a set of points Undefined values are skipped over.
// Find centroid of a list of pointsconst c1 = centroid(p1, p2, p3, ...);// Find centroid of an array of pointsconst c2 = centroid(...pointsArray); Copy
// Find centroid of a list of pointsconst c1 = centroid(p1, p2, p3, ...);// Find centroid of an array of pointsconst c2 = centroid(...pointsArray);
Rest
A single point
Calculates the centroid of a set of points Undefined values are skipped over.