Struct ReferenceCurveEvaluator

Source
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

Source

pub const ID: BackendId

Backend identity.

Source

pub const fn new() -> Self

Evaluator whose reference up is global +Z.

The right default for civil and building work, where z is up by construction.

Source

pub fn with_up(up: Vec3) -> Option<Self>

Evaluator with an explicit reference up direction.

Returns None for a non-finite or zero vector, which cannot define a roll convention.

Source

pub const fn up(&self) -> Vec3

The reference up direction this evaluator builds frames against.

Trait Implementations§

Source§

impl Backend for ReferenceCurveEvaluator

Source§

fn descriptor(&self) -> BackendDescriptor

Runtime descriptor and capability inventory.
Source§

impl Clone for ReferenceCurveEvaluator

Source§

fn clone(&self) -> ReferenceCurveEvaluator

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CurveEvaluator for ReferenceCurveEvaluator

Source§

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

Which distance this provider measures for curve. Read more
Source§

fn point_at(&self, curve: &Curve3, at: CurveMeasure) -> GeomResult<Point3>

Position at at along curve. Read more
Source§

fn tangent_at(&self, curve: &Curve3, at: CurveMeasure) -> GeomResult<Vec3>

Unit tangent at at along curve. Read more
Source§

fn frame_at(&self, curve: &Curve3, at: CurveMeasure) -> GeomResult<Frame3>

Oriented frame at at along curve. Read more
Source§

impl Debug for ReferenceCurveEvaluator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ReferenceCurveEvaluator

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ReferenceCurveEvaluator

Source§

fn eq(&self, other: &ReferenceCurveEvaluator) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ReferenceCurveEvaluator

Source§

impl StructuralPartialEq for ReferenceCurveEvaluator

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.