pub struct RtLocalHit { /* private fields */ }Expand description
Local-space ray-triangle intersection result returned by Blas3D.
Implementations§
Source§impl RtLocalHit
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RtLocalHit
Implements impl #impl_generics #name #ty_generics #where_clause.
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_barycentric_u(&self) -> f32
pub fn get_mut_barycentric_u(&mut self) -> &mut f32
pub fn set_barycentric_u(&mut self, val: f32) -> &mut Self
pub fn get_barycentric_v(&self) -> f32
pub fn get_mut_barycentric_v(&mut self) -> &mut f32
pub fn set_barycentric_v(&mut self, val: f32) -> &mut Self
pub fn get_position(&self) -> Vec3
pub fn get_mut_position(&mut self) -> &mut Vec3
pub fn set_position(&mut self, val: Vec3) -> &mut Self
pub fn get_geometric_normal(&self) -> Vec3
pub fn get_mut_geometric_normal(&mut self) -> &mut Vec3
pub fn set_geometric_normal(&mut self, val: Vec3) -> &mut Self
pub fn get_shading_normal(&self) -> Vec3
pub fn get_mut_shading_normal(&mut self) -> &mut Vec3
pub fn set_shading_normal(&mut self, val: Vec3) -> &mut Self
pub fn get_uv(&self) -> Vec2
pub fn get_mut_uv(&mut self) -> &mut Vec2
pub fn set_uv(&mut self, val: Vec2) -> &mut Self
pub fn get_triangle_index(&self) -> u32
pub fn get_mut_triangle_index(&mut self) -> &mut u32
pub fn set_triangle_index(&mut self, val: u32) -> &mut Self
pub fn get_material_slot(&self) -> u16
pub fn get_mut_material_slot(&mut self) -> &mut u16
pub fn set_material_slot(&mut self, val: u16) -> &mut Self
Trait Implementations§
Source§impl Clone for RtLocalHit
impl Clone for RtLocalHit
impl Copy for RtLocalHit
Source§impl Debug for RtLocalHit
impl Debug for RtLocalHit
Source§impl PartialEq for RtLocalHit
impl PartialEq for RtLocalHit
impl StructuralPartialEq for RtLocalHit
Auto Trait Implementations§
impl Forget for RtLocalHit
impl Freeze for RtLocalHit
impl Move for RtLocalHit
impl RefUnwindSafe for RtLocalHit
impl Send for RtLocalHit
impl Sync for RtLocalHit
impl Unpin for RtLocalHit
impl UnsafeUnpin for RtLocalHit
impl UnwindSafe for RtLocalHit
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