pub struct Ray { /* private fields */ }Expand description
A 3D ray carrying the parameters needed for traversal and depth tracking.
Implementations§
Source§impl Ray
impl Ray
Source§impl Ray
impl Ray
pub fn get_origin(&self) -> Vector3D
pub fn get_mut_origin(&mut self) -> &mut Vector3D
pub fn set_origin(&mut self, val: Vector3D) -> &mut Self
pub fn get_direction(&self) -> Vector3D
pub fn get_mut_direction(&mut self) -> &mut Vector3D
pub fn set_direction(&mut self, val: Vector3D) -> &mut Self
pub fn get_t_min(&self) -> f64
pub fn get_mut_t_min(&mut self) -> &mut f64
pub fn set_t_min(&mut self, val: f64) -> &mut Self
pub fn get_t_max(&self) -> f64
pub fn get_mut_t_max(&mut self) -> &mut f64
pub fn set_t_max(&mut self, val: f64) -> &mut Self
pub fn get_depth(&self) -> u32
pub fn get_mut_depth(&mut self) -> &mut u32
pub fn set_depth(&mut self, val: u32) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for Ray
Auto Trait Implementations§
impl Freeze for Ray
impl RefUnwindSafe for Ray
impl Send for Ray
impl Sync for Ray
impl Unpin for Ray
impl UnsafeUnpin for Ray
impl UnwindSafe for Ray
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