Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometric types for piecewise linear functions.

Provides Point, Segment, and max_of_segments for computing upper envelopes of line segments on [0, 1].

Structs§

Point
A point in 2D space.
Segment
A line segment between two points where l.x < r.x.

Functions§

max_of_segments
Compute the upper envelope of a set of compatible segments.