pub struct IntersectionResult {
pub position: Vec3,
pub geometry_id: u32,
pub instance_id: u32,
}
Expand description
Result from an intersection test
Fields§
§position: Vec3
The position of the intersection.
geometry_id: u32
The index of the intersected geometry in the list of geometries.
instance_id: u32
The index of the intersected instance in the list of instances, ie. gl_InstanceID. This is 0 if the intersection did not hit an instanced geometry.
Trait Implementations§
Source§impl Clone for IntersectionResult
impl Clone for IntersectionResult
Source§fn clone(&self) -> IntersectionResult
fn clone(&self) -> IntersectionResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IntersectionResult
impl Debug for IntersectionResult
impl Copy for IntersectionResult
Auto Trait Implementations§
impl Freeze for IntersectionResult
impl RefUnwindSafe for IntersectionResult
impl Send for IntersectionResult
impl Sync for IntersectionResult
impl Unpin for IntersectionResult
impl UnwindSafe for IntersectionResult
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