pub struct Ray<T: Float> {
pub origin: Point3<T>,
pub dir: Vec3<T>,
}Expand description
A 3D ray: origin + t·dir, with dir not necessarily normalized.
Fields§
§origin: Point3<T>Ray origin point
dir: Vec3<T>Ray direction vector (not necessarily normalized)
Trait Implementations§
impl<T: Copy + Float> Copy for Ray<T>
Auto Trait Implementations§
impl<T> Freeze for Ray<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ray<T>where
T: RefUnwindSafe,
impl<T> Send for Ray<T>where
T: Send,
impl<T> Sync for Ray<T>where
T: Sync,
impl<T> Unpin for Ray<T>where
T: Unpin,
impl<T> UnwindSafe for Ray<T>where
T: UnwindSafe,
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