Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Centroid
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Of a polygon === The centroid of a non-self-intersecting closed [[polygon]] defined by <math>n</math> vertices <math>(x_0, y_0),\;</math><math>(x_1, y_1),\; \ldots,\;</math><math>(x_{n-1}, y_{n-1}),</math> is the point <math>(C_x, C_y),</math><ref name=bourke /> where <math display=block> C_{\mathrm x} = \frac{1}{6A}\sum_{i=0}^{n-1}(x_i+x_{i+1})(x_i\ y_{i+1} - x_{i+1}\ y_i),</math> and <math display=block> C_{\mathrm y} = \frac{1}{6A}\sum_{i=0}^{n-1}(y_i+y_{i+1})(x_i\ y_{i+1} - x_{i+1}\ y_i), </math> and where <math>A</math> is the polygon's signed area,<ref name=bourke>{{harvtxt|Bourke|1997}}</ref> as described by the [[shoelace formula]]: <math display=block> A = \frac{1}{2}\sum_{i=0}^{n-1} (x_i\ y_{i+1} - x_{i+1}\ y_i). </math> In these formulae, the vertices are assumed to be numbered in order of their occurrence along the polygon's perimeter; furthermore, the vertex <math>(x_n, y_n)</math> is assumed to be the same as <math>(x_0, y_0),</math> meaning <math>i+1</math> on the last case must loop around to <math>i=0.</math> (If the points are numbered in clockwise order, the area <math>A,</math> computed as above, will be negative; however, the centroid coordinates will be correct even in this case.) {{anchor|Of a vertex set}}The centroid of a non-triangular polygon is not the same as its ''vertex centroid'', considering only its [[Vertex (geometry)|vertex]] set (as the [[#Of a finite set of points|centroid of a finite set of points]]; {{xref|see also: [[Polygon#Centroid]]}}).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)