pub struct CompoundPoint {
pub part: usize,
pub point: DVec3,
pub distance: f64,
}Expand description
The point of one part of an AabbCompound nearest a query point.
Fields§
§part: usizeIndex of the part, in the slice the compound was built from.
point: DVec3The nearest world-space point on or in that part. When the query point is inside the part this is the query point itself, bit for bit.
distance: f64World-space distance from the query point to point;
exactly 0.0 inside the part.
Trait Implementations§
Source§impl Clone for CompoundPoint
impl Clone for CompoundPoint
impl Copy for CompoundPoint
Source§impl Debug for CompoundPoint
impl Debug for CompoundPoint
Source§impl PartialEq for CompoundPoint
impl PartialEq for CompoundPoint
impl StructuralPartialEq for CompoundPoint
Auto Trait Implementations§
impl Forget for CompoundPoint
impl Freeze for CompoundPoint
impl Move for CompoundPoint
impl RefUnwindSafe for CompoundPoint
impl Send for CompoundPoint
impl Sync for CompoundPoint
impl Unpin for CompoundPoint
impl UnsafeUnpin for CompoundPoint
impl UnwindSafe for CompoundPoint
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