Trait CurveWithTwoDerivatives

Source
pub trait CurveWithTwoDerivatives<T>: Sized + SampleTwoDerivatives<T>
where T: HasTangent,
{ // Required method fn with_two_derivatives(self) -> SampleTwoDerivativesWrapper<Self>; }
Expand description

Trait for curves that have a well-defined notion of second derivative, allowing for two derivatives to be extracted along with values.

This is implemented by implementing SampleTwoDerivatives.

Required Methods§

Source

fn with_two_derivatives(self) -> SampleTwoDerivativesWrapper<Self>

This curve, but with its first two derivatives included in sampling.

Notably, the output type is a Curve<WithTwoDerivatives<T>>.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§