pub struct ClosestHit {
pub triangle: TriangleId,
pub point: [f32; 3],
pub distance: f32,
pub barycentric: [f32; 3],
pub feature: Feature,
}Expand description
The point of a mesh nearest to a query point.
Fields§
§triangle: TriangleIdThe triangle the point lies on.
point: [f32; 3]The nearest point, in mesh-local coordinates.
distance: f32Distance from the query to point.
barycentric: [f32; 3]Weights of the triangle’s corners 0, 1 and 2 at point.
feature: FeatureThe vertex, edge or face of the triangle that point lies on.
Trait Implementations§
Source§impl Clone for ClosestHit
impl Clone for ClosestHit
Source§fn clone(&self) -> ClosestHit
fn clone(&self) -> ClosestHit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClosestHit
Source§impl Debug for ClosestHit
impl Debug for ClosestHit
Source§impl PartialEq for ClosestHit
impl PartialEq for ClosestHit
impl StructuralPartialEq for ClosestHit
Auto Trait Implementations§
impl Freeze for ClosestHit
impl RefUnwindSafe for ClosestHit
impl Send for ClosestHit
impl Sync for ClosestHit
impl Unpin for ClosestHit
impl UnsafeUnpin for ClosestHit
impl UnwindSafe for ClosestHit
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