pub struct Ray3D { /* private fields */ }Expand description
3D ray with origin, normalized direction, and precomputed reciprocal direction for fast BVH traversal.
Implementations§
Source§impl Ray3D
Ray construction with safe reciprocal components for Ray3D.
impl Ray3D
Ray construction with safe reciprocal components for Ray3D.
Sourcepub fn safe_inv_vec(dir: Vec3) -> Vec3
pub fn safe_inv_vec(dir: Vec3) -> Vec3
Source§impl Ray3D
impl Ray3D
pub fn get_origin(&self) -> Vec3
pub fn get_mut_origin(&mut self) -> &mut Vec3
pub fn set_origin(&mut self, val: Vec3) -> &mut Self
pub fn get_direction(&self) -> Vec3
pub fn get_mut_direction(&mut self) -> &mut Vec3
pub fn set_direction(&mut self, val: Vec3) -> &mut Self
pub fn get_inv_direction(&self) -> Vec3
pub fn get_mut_inv_direction(&mut self) -> &mut Vec3
pub fn set_inv_direction(&mut self, val: Vec3) -> &mut Self
Trait Implementations§
impl Copy for Ray3D
impl StructuralPartialEq for Ray3D
Auto Trait Implementations§
impl Forget for Ray3D
impl Freeze for Ray3D
impl Move for Ray3D
impl RefUnwindSafe for Ray3D
impl Send for Ray3D
impl Sync for Ray3D
impl Unpin for Ray3D
impl UnsafeUnpin for Ray3D
impl UnwindSafe for Ray3D
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