pub struct Approach<A, B> {
pub on_a: A,
pub on_b: B,
pub point_a: Point,
pub point_b: Point,
pub distance: f64,
}Expand description
One stationary approach between two geometries.
Fields§
§on_a: AThe parameters on the first geometry.
on_b: BThe parameters on the second.
point_a: PointThe evaluated point on the first geometry.
point_b: PointThe evaluated point on the second.
distance: f64The distance between them: the claim, checkable by evaluation.
Trait Implementations§
impl<A: Copy, B: Copy> Copy for Approach<A, B>
Source§impl<A: PartialEq, B: PartialEq> PartialEq for Approach<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Approach<A, B>
impl<A: PartialEq, B: PartialEq> StructuralPartialEq for Approach<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Approach<A, B>
impl<A, B> RefUnwindSafe for Approach<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Approach<A, B>
impl<A, B> Sync for Approach<A, B>
impl<A, B> Unpin for Approach<A, B>
impl<A, B> UnsafeUnpin for Approach<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Approach<A, B>where
A: UnwindSafe,
B: 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.