Package-level declarations

Types

Link copied to clipboard
data class LocalMaximum(val t: Double, val value: Double, val position: Vector2)

Functions

Link copied to clipboard
fun RectifiedContour.findLocalMaxima(samples: Int, windowSize: Double, f: ShapeContour.(Double) -> Double): List<LocalMaximum>

Finds local maxima of f sampled along RectifiedContour, using arc-length-uniform sampling so that windowSize (expressed as a fraction of curve length) means the same thing everywhere on the contour, regardless of how unevenly the original contour's segments are distributed.