maxPerpChord: Find the longest perpendicular chord within a polygon

View source: R/maxChord.R

maxPerpChordR Documentation

Find the longest perpendicular chord within a polygon

Description

Find the longest perpendicular chord within a polygon

Usage

maxPerpChord(x, chord = maxChord(x), theta = pi/2)

Arguments

x

st_POLYGON

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))
maxPerpChord(poly)
maxPerpChord(poly, theta = pi/3)


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