2D polygon for geometric operations and spatial analysis.
Common uses
Vowel space boundaries
Formant space visualization
Acoustic space analysis
Convex hull computation
Examples
# Create polygon from formant data
poly <- Polygon(x = c(730, 1090, 2440), y = c(1090, 1220, 2440))
# Geometry queries
perimeter <- poly$get_perimeter()
n_points <- poly$n_points()
# Optimize path (traveling salesman)
poly$optimize_salesperson(iterations = 100)
# Export
df <- as.data.frame(poly)