Skip to main content

ParameterRefinable

Trait ParameterRefinable 

Source
pub trait ParameterRefinable<const C: usize> {
    // Required methods
    fn evaluate_cartesian(&self, t: Scalar) -> GeopResult<Vector<C>>;
    fn tangent_cartesian(&self, t: Scalar) -> GeopResult<Vector<C>>;
}
Expand description

Bridges a NurbCurve<D>’s Cartesian evaluation (D = 4 -> 3-D points, D = 3 -> 2-D pcurve points) so NurbCurve::refine_parameter_at_point can be written once for both — stable Rust’s const generics cannot express C = D - 1 directly.

Required Methods§

Source

fn evaluate_cartesian(&self, t: Scalar) -> GeopResult<Vector<C>>

Source

fn tangent_cartesian(&self, t: Scalar) -> GeopResult<Vector<C>>

The Cartesian tangent, via each dimension’s own tangent (the quotient rule over the homogeneous derivative()).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§