pub struct Hit { /* private fields */ }Expand description
The result of a ray-object intersection.
Implementations§
Source§impl Hit
impl Hit
pub fn get_t(&self) -> f64
pub fn get_mut_t(&mut self) -> &mut f64
pub fn set_t(&mut self, val: f64) -> &mut Self
pub fn get_position(&self) -> Vector3D
pub fn get_mut_position(&mut self) -> &mut Vector3D
pub fn set_position(&mut self, val: Vector3D) -> &mut Self
pub fn get_normal(&self) -> Vector3D
pub fn get_mut_normal(&mut self) -> &mut Vector3D
pub fn set_normal(&mut self, val: Vector3D) -> &mut Self
pub fn get_material(&self) -> &Material
pub fn get_mut_material(&mut self) -> &mut Material
pub fn set_material(&mut self, val: Material) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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