R/calculation.R
circumference.Rd
Return circumference length of polygon line
circumference(l.)
data frame of line coordinates (x,y)
a numeric of circumference length of polygon line
l. <- data.frame(x=c(0,0,1,1),y=c(0,1,1,0)) plot(l.,type="b") ; polygon(l.) circumference(l.) #> [1] 4