pub struct Ray3D { /* private fields */ }Expand description
A 3D ray defined by an origin point and a direction vector.
Implementations§
Source§impl Ray3D
Implements methods for Ray3D.
impl Ray3D
Implements methods for Ray3D.
Source§impl Ray3D
impl Ray3D
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
Trait Implementations§
impl Copy for Ray3D
Source§impl PartialOrd for Ray3D
impl PartialOrd for Ray3D
impl StructuralPartialEq for Ray3D
Auto Trait Implementations§
impl Freeze 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