View source: R/polygon_centroids.R
poly_centroid | R Documentation |
Mainly for internal use. Determines the centroids of a polygon based on its x and y coordinates. This function is a reimplementation of 'soiltexture::TT.polygon.centroids()' and only re-implemented to avoid extra dependencies.
poly_centroid(poly_x, poly_y)
poly_x |
(numeric) X coordinates of each vertices of the polygon |
poly_y |
(numeric) Y coordinates of each vertices of the polygon |
A numeric, the area of the polygon.
soiltexture::TT.polygon.centroids()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.