maxChord: Find the longest chord within a polygon

View source: R/maxChord.R

maxChordR Documentation

Find the longest chord within a polygon

Description

Find the longest chord within a polygon

Usage

maxChord(x)

Arguments

x

st_POLYGON object

Value

st_LINESTRING

Examples

crd <- matrix(c(0, 0, 0.5, 1, 1, 0, 0, 1, 1.5, 1, 0, 0), ncol = 2)
poly <- st_polygon(list(crd))
maxChord(poly)



johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.