pub struct RaycastHit {
pub glyph_id: GlyphId,
pub distance: f32,
pub point: Vec3,
pub normal: Vec3,
}Expand description
Result of a raycast against scene geometry.
Fields§
§glyph_id: GlyphId§distance: f32§point: Vec3§normal: Vec3Trait Implementations§
Source§impl Clone for RaycastHit
impl Clone for RaycastHit
Source§fn clone(&self) -> RaycastHit
fn clone(&self) -> RaycastHit
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RaycastHit
impl RefUnwindSafe for RaycastHit
impl Send for RaycastHit
impl Sync for RaycastHit
impl Unpin for RaycastHit
impl UnsafeUnpin for RaycastHit
impl UnwindSafe for RaycastHit
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