pub struct SceneClosestHit {
pub mesh: MeshId,
pub hit: ClosestHit,
pub point: [f64; 3],
pub distance: f64,
}Expand description
The point of the scene nearest to a world point.
Fields§
§mesh: MeshIdThe mesh the point lies on.
hit: ClosestHitThe hit as the Phase 3 query reported it, in the mesh’s local space.
point: [f64; 3]The nearest point in the world: hit.point placed by the mesh’s
origin and placement.
distance: f64The world distance from the query point. With a rigid placement it is the local distance; with a uniform scale it is the local distance times the scale; with a non-uniform scale the local query runs on a world-baked copy, so it is that query’s distance.
Trait Implementations§
Source§impl Clone for SceneClosestHit
impl Clone for SceneClosestHit
Source§fn clone(&self) -> SceneClosestHit
fn clone(&self) -> SceneClosestHit
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 SceneClosestHit
Source§impl Debug for SceneClosestHit
impl Debug for SceneClosestHit
Source§impl PartialEq for SceneClosestHit
impl PartialEq for SceneClosestHit
impl StructuralPartialEq for SceneClosestHit
Auto Trait Implementations§
impl Freeze for SceneClosestHit
impl RefUnwindSafe for SceneClosestHit
impl Send for SceneClosestHit
impl Sync for SceneClosestHit
impl Unpin for SceneClosestHit
impl UnsafeUnpin for SceneClosestHit
impl UnwindSafe for SceneClosestHit
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