pub struct Ray<S: Scalar> {
pub origin: Vector3<S>,
pub dir: Vector3<S>,
}Expand description
A pickable ray, in world space. dir need not be unit length; t in
PickHit is in units of dir, i.e. the hit point is
origin + dir * t.
Fields§
§origin: Vector3<S>§dir: Vector3<S>Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Ray<S>where
S: Freeze,
impl<S> RefUnwindSafe for Ray<S>where
S: RefUnwindSafe,
impl<S> Send for Ray<S>
impl<S> Sync for Ray<S>
impl<S> Unpin for Ray<S>where
S: Unpin,
impl<S> UnsafeUnpin for Ray<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Ray<S>where
S: 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