Skip to main content

IntrinsicPositionTable

Struct IntrinsicPositionTable 

Source
pub struct IntrinsicPositionTable { /* private fields */ }
Expand description

Certified positions of an intrinsic curve over [0, end], read in any order: the unit tangent of its closed-form heading integrated by the composite two-point Gauss-Legendre rule, each point with a certified bound on its error (see the module documentation).

Implementations§

Source§

impl IntrinsicPositionTable

Source

pub fn new2(curve: &Intrinsic2, error: Scalar, end: Scalar) -> Option<Self>

The table of a 2D intrinsic curve over [0, end], its points within about error, half of it spent on the remainders; None for an error or an end that is not finite and positive, an end past the curve’s length, a law with no closed-form bound of k to k''' on a seam-free piece, or more than MAX_TABLE_PANELS panels.

Source

pub fn new3(curve: &Intrinsic3, error: Scalar, end: Scalar) -> Option<Self>

The table of a planar space curve (its torsion law identically zero, Intrinsic3::is_planar); None as for Self::new2, or for a curve with torsion.

Source

pub fn panels(&self) -> usize

The number of panels the table is cut into.

Source

pub fn point2(&self, s: Scalar) -> Option<(Point2, Scalar)>

The point at arc length s of a 2D curve and a certified bound on its distance from the exact point: the same bits whatever was read before. None outside [0, end], for a law that does not integrate there, or for a space curve.

Source

pub fn point3(&self, s: Scalar) -> Option<(Point3, Scalar)>

Self::point2 for a planar space curve.

Source

pub fn max_error(&self) -> Scalar

A certified bound on the error of every point the table returns (the error of Self::point2 and Self::point3 grows with s and is never above it): the remainders of all panels and the roundings of the end, through the start frame.

Source

pub fn heading_rounding(&self) -> Scalar

A certified bound on the rounding of the heading, in radians: what a tangent read from it may be turned by.

Trait Implementations§

Source§

impl Clone for IntrinsicPositionTable

Source§

fn clone(&self) -> IntrinsicPositionTable

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IntrinsicPositionTable

Source§

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

Formats the value using the given formatter. Read more

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.