pub struct Nearest<A, B> {
pub a: (A, Vector3),
pub b: (B, Vector3),
pub distance: Scalar,
pub candidates: Vec<(A, B)>,
}Expand description
The least distance between two sets, as least_distance finds it.
Fields§
§a: (A, Vector3)The point of the first set, and where on it.
b: (B, Vector3)The point of the second set, and where on it.
distance: ScalarThe least distance between the sets: at least the search’s lower
bound, at most the distance between a and b.
candidates: Vec<(A, B)>Where on each set the pairs left at the handoff attain a point: where else a least distance could be, for Newton to refine.
Trait Implementations§
Auto Trait Implementations§
impl<A, B> Freeze for Nearest<A, B>
impl<A, B> RefUnwindSafe for Nearest<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Nearest<A, B>
impl<A, B> Sync for Nearest<A, B>
impl<A, B> Unpin for Nearest<A, B>
impl<A, B> UnsafeUnpin for Nearest<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Nearest<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