pub struct ScalarCurve;Expand description
Portable scalar curve evaluator.
Stateless: every method is a pure function of its arguments, so one instance is freely shareable across threads.
Implementations§
Source§impl ScalarCurve
impl ScalarCurve
Sourcepub const fn new() -> ScalarCurve
pub const fn new() -> ScalarCurve
Construct the evaluator.
Trait Implementations§
Source§impl Clone for ScalarCurve
impl Clone for ScalarCurve
Source§fn clone(&self) -> ScalarCurve
fn clone(&self) -> ScalarCurve
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CurveEvaluator<Curve2> for ScalarCurve
impl CurveEvaluator<Curve2> for ScalarCurve
Source§type Derivative = DVec2
type Derivative = DVec2
First derivative returned by evaluation.
Source§fn evaluate(
&self,
curve: &Curve2,
t: f64,
_tolerance: Tolerance,
) -> Result<<ScalarCurve as CurveEvaluator<Curve2>>::Point, <ScalarCurve as CurveEvaluator<Curve2>>::Error>
fn evaluate( &self, curve: &Curve2, t: f64, _tolerance: Tolerance, ) -> Result<<ScalarCurve as CurveEvaluator<Curve2>>::Point, <ScalarCurve as CurveEvaluator<Curve2>>::Error>
Position at parameter
t.Source§fn derivative(
&self,
curve: &Curve2,
t: f64,
_tolerance: Tolerance,
) -> Result<<ScalarCurve as CurveEvaluator<Curve2>>::Derivative, <ScalarCurve as CurveEvaluator<Curve2>>::Error>
fn derivative( &self, curve: &Curve2, t: f64, _tolerance: Tolerance, ) -> Result<<ScalarCurve as CurveEvaluator<Curve2>>::Derivative, <ScalarCurve as CurveEvaluator<Curve2>>::Error>
First derivative at parameter
t.Source§impl CurveEvaluator<Curve3> for ScalarCurve
impl CurveEvaluator<Curve3> for ScalarCurve
Source§type Derivative = DVec3
type Derivative = DVec3
First derivative returned by evaluation.
Source§fn evaluate(
&self,
curve: &Curve3,
t: f64,
_tolerance: Tolerance,
) -> Result<<ScalarCurve as CurveEvaluator<Curve3>>::Point, <ScalarCurve as CurveEvaluator<Curve3>>::Error>
fn evaluate( &self, curve: &Curve3, t: f64, _tolerance: Tolerance, ) -> Result<<ScalarCurve as CurveEvaluator<Curve3>>::Point, <ScalarCurve as CurveEvaluator<Curve3>>::Error>
Position at parameter
t.Source§fn derivative(
&self,
curve: &Curve3,
t: f64,
_tolerance: Tolerance,
) -> Result<<ScalarCurve as CurveEvaluator<Curve3>>::Derivative, <ScalarCurve as CurveEvaluator<Curve3>>::Error>
fn derivative( &self, curve: &Curve3, t: f64, _tolerance: Tolerance, ) -> Result<<ScalarCurve as CurveEvaluator<Curve3>>::Derivative, <ScalarCurve as CurveEvaluator<Curve3>>::Error>
First derivative at parameter
t.Source§impl Debug for ScalarCurve
impl Debug for ScalarCurve
Source§impl Default for ScalarCurve
impl Default for ScalarCurve
Source§fn default() -> ScalarCurve
fn default() -> ScalarCurve
Returns the “default value” for a type. Read more
impl Copy for ScalarCurve
Auto Trait Implementations§
impl Freeze for ScalarCurve
impl RefUnwindSafe for ScalarCurve
impl Send for ScalarCurve
impl Sync for ScalarCurve
impl Unpin for ScalarCurve
impl UnwindSafe for ScalarCurve
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more