Centroid Command

From GeoGebra Manual
Revision as of 10:02, 11 October 2017 by Mathmum (talk | contribs) (command syntax: changed [ ] into ( ))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Centroid( <Polygon> )
Returns the centroid of the polygon.
Example:
Let A = (1, 4), B = (1, 1), C = (5, 1) and D = (5, 4) be the vertices of a polygon. Polygon(A, B, C, D) yields poly1 = 12. Centroid(poly1) yields the centroid E = (3, 2.5).
© 2024 International GeoGebra Institute