pub struct ReferenceCurveEvaluator { /* private fields */ }Expand description
Reference curve evaluator.
up is the reference direction the oriented frame is built against.
It is carried by the provider rather than passed per call so that one
consumer cannot silently place two objects against different
conventions on the same alignment.
Implementations§
Source§impl ReferenceCurveEvaluator
impl ReferenceCurveEvaluator
Sourcepub const fn new() -> ReferenceCurveEvaluator
pub const fn new() -> ReferenceCurveEvaluator
Evaluator whose reference up is global +Z.
The right default for civil and building work, where z is up by
construction.
Sourcepub fn with_up(up: DVec3) -> Option<ReferenceCurveEvaluator>
pub fn with_up(up: DVec3) -> Option<ReferenceCurveEvaluator>
Evaluator with an explicit reference up direction.
Returns None for a non-finite or zero vector, which cannot
define a roll convention.
Trait Implementations§
Source§impl Backend for ReferenceCurveEvaluator
impl Backend for ReferenceCurveEvaluator
Source§fn descriptor(&self) -> BackendDescriptor
fn descriptor(&self) -> BackendDescriptor
Runtime descriptor and capability inventory.
Source§impl Clone for ReferenceCurveEvaluator
impl Clone for ReferenceCurveEvaluator
Source§fn clone(&self) -> ReferenceCurveEvaluator
fn clone(&self) -> ReferenceCurveEvaluator
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 for ReferenceCurveEvaluator
impl CurveEvaluator for ReferenceCurveEvaluator
Source§fn determinism(&self) -> Determinism
fn determinism(&self) -> Determinism
Bitwise: every path is deterministic floating-point arithmetic with no hashing, threading or iteration-order dependence.
Source§fn distance_convention(&self, curve: &Curve3) -> DistanceConvention
fn distance_convention(&self, curve: &Curve3) -> DistanceConvention
Which distance this provider measures for
curve. Read moreSource§fn tangent_at(
&self,
curve: &Curve3,
at: CurveMeasure,
) -> Result<DVec3, GeomError>
fn tangent_at( &self, curve: &Curve3, at: CurveMeasure, ) -> Result<DVec3, GeomError>
Source§impl Debug for ReferenceCurveEvaluator
impl Debug for ReferenceCurveEvaluator
Source§impl Default for ReferenceCurveEvaluator
impl Default for ReferenceCurveEvaluator
Source§fn default() -> ReferenceCurveEvaluator
fn default() -> ReferenceCurveEvaluator
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReferenceCurveEvaluator
impl PartialEq for ReferenceCurveEvaluator
impl Copy for ReferenceCurveEvaluator
impl StructuralPartialEq for ReferenceCurveEvaluator
Auto Trait Implementations§
impl Freeze for ReferenceCurveEvaluator
impl RefUnwindSafe for ReferenceCurveEvaluator
impl Send for ReferenceCurveEvaluator
impl Sync for ReferenceCurveEvaluator
impl Unpin for ReferenceCurveEvaluator
impl UnwindSafe for ReferenceCurveEvaluator
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