Description Usage Arguments Details Value See Also
The function starts by finding the centroid of the points and then orders them from their angle to the center, whereafter it computes the area using the triangle method.
1 | polygon_area(x, y)
|
x |
X coordinates for the vertices of the polygon |
y |
Y coordinates for the vertices of the polygon |
polygon_area
is vectorized and hence faster than implementations
relying on for loops.
Area of the polygon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.