centroid

Share:

Description

calculate the centroid of a polygon

Usage

1

Arguments

p

list: x,y

Details

same code as centroid.polygon

Value

vector x, y

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

1
2
3
4
L=list()
L$x=c( 0.2188,-0.6668,-1.0992,-0.5105, 0.5106)
L$y=c( 0.76822, 0.75292,-0.01741,-0.74692,-0.48165)
centroid(L)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.