polygon_centroid: Get position of centroid of polygon

View source: R/utility_geometry.R

polygon_centroidR Documentation

Get position of centroid of polygon

Description

Calculate the centroid position of a polygon based on the coordinates of the polygon

Usage

polygon_centroid(x, y)

Arguments

x, y

arrays with x and y coordinates of the polygon

Value

list with x and y positions


GJMeijer/soilmech documentation built on May 22, 2022, 10:39 a.m.