pub struct Ray3D {
pub origin: Vector3D,
pub direction: Vector3D,
}Expand description
A 3D ray defined by an origin point and a direction vector.
Fields§
§origin: Vector3DThe origin point of the ray.
direction: Vector3DThe direction vector of the ray (should be normalized).
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_direction(&self) -> 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