pub trait HasConvexHull<S: Scalar, const C: usize> {
// Required methods
fn convex_hull(&self) -> GeopResult<ConvexHull<S, C>>;
fn size(&self) -> GeopResult<S>;
}Expand description
Bridges NurbCurve<S, D>’s pair of concrete convex_hull()/size()
impls (D=4 → ConvexHull<S,3>, D=3 → ConvexHull<S,2>) so code
generic over D (e.g. curve_curve_intersect, curve_could_contain) can
call them via a where NurbCurve<S, D>: HasConvexHull<S, C> bound —
Rust’s stable const generics can’t express C = D - 1 directly in a
single generic function.
Required Methods§
fn convex_hull(&self) -> GeopResult<ConvexHull<S, C>>
fn size(&self) -> GeopResult<S>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".