Trait kurbo::ParamCurveExtrema
source · pub trait ParamCurveExtrema: ParamCurve {
// Required method
fn extrema(&self) -> ArrayVec<f64, MAX_EXTREMA>;
// Provided methods
fn extrema_ranges(&self) -> ArrayVec<Range<f64>, { _ }> { ... }
fn bounding_box(&self) -> Rect { ... }
}
Expand description
A parametrized curve that reports its extrema.
Required Methods§
Provided Methods§
sourcefn extrema_ranges(&self) -> ArrayVec<Range<f64>, { _ }>
fn extrema_ranges(&self) -> ArrayVec<Range<f64>, { _ }>
Return parameter ranges, each of which is monotonic within the range.
sourcefn bounding_box(&self) -> Rect
fn bounding_box(&self) -> Rect
The smallest rectangle that encloses the curve in the range (0..1).
Object Safety§
This trait is not object safe.