pub struct RayHit3D { /* private fields */ }Expand description
Closest ray-triangle hit result returned by Bvh3D::trace_closest.
Implementations§
Source§impl RayHit3D
impl RayHit3D
pub fn get_distance(&self) -> f32
pub fn get_mut_distance(&mut self) -> &mut f32
pub fn set_distance(&mut self, val: f32) -> &mut Self
pub fn get_point(&self) -> Vec3
pub fn get_mut_point(&mut self) -> &mut Vec3
pub fn set_point(&mut self, val: Vec3) -> &mut Self
pub fn get_normal(&self) -> Vec3
pub fn get_mut_normal(&mut self) -> &mut Vec3
pub fn set_normal(&mut self, val: Vec3) -> &mut Self
pub fn get_material(&self) -> PbrMaterial
pub fn get_mut_material(&mut self) -> &mut PbrMaterial
pub fn set_material(&mut self, val: PbrMaterial) -> &mut Self
Trait Implementations§
impl Copy for RayHit3D
impl StructuralPartialEq for RayHit3D
Auto Trait Implementations§
impl Forget for RayHit3D
impl Freeze for RayHit3D
impl Move for RayHit3D
impl RefUnwindSafe for RayHit3D
impl Send for RayHit3D
impl Sync for RayHit3D
impl Unpin for RayHit3D
impl UnsafeUnpin for RayHit3D
impl UnwindSafe for RayHit3D
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