pub struct Crossing<P> {
pub on_a: f64,
pub on_b: f64,
pub point: P,
pub gap: f64,
pub reach: f64,
}Expand description
One crossing of two curves.
Fields§
§on_a: f64The parameter on the first curve.
on_b: f64The parameter on the second.
point: PWhere, taken from the first curve.
gap: f64How far apart the two curves are there.
Rounding for a planar crossing; real geometry for a spatial one, where two curves generically miss and “crossing” means passing within the caller’s tolerance.
reach: f64How far along the curves this contact could honestly sit: zero for a transversal crossing, the length of the touching run where the curves meet tangentially: there the closest approach is anywhere in a valley the width of the gap, and a consumer placing a vertex at it owns that much doubt.
Trait Implementations§
impl<P: Copy> Copy for Crossing<P>
Source§impl<P: PartialEq> PartialEq for Crossing<P>
impl<P: PartialEq> PartialEq for Crossing<P>
impl<P: PartialEq> StructuralPartialEq for Crossing<P>
Auto Trait Implementations§
impl<P> Freeze for Crossing<P>where
P: Freeze,
impl<P> RefUnwindSafe for Crossing<P>where
P: RefUnwindSafe,
impl<P> Send for Crossing<P>where
P: Send,
impl<P> Sync for Crossing<P>where
P: Sync,
impl<P> Unpin for Crossing<P>where
P: Unpin,
impl<P> UnsafeUnpin for Crossing<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Crossing<P>where
P: UnwindSafe,
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.