pub struct Ray3 {
pub origin: Vec3,
pub dir: Vec3,
}Expand description
3-D ray with an origin and a (not necessarily unit) direction.
Fields§
§origin: Vec3Origin.
dir: Vec3Direction (does not need to be unit length).
Implementations§
Trait Implementations§
impl Copy for Ray3
impl StructuralPartialEq for Ray3
Auto Trait Implementations§
impl Freeze for Ray3
impl RefUnwindSafe for Ray3
impl Send for Ray3
impl Sync for Ray3
impl Unpin for Ray3
impl UnsafeUnpin for Ray3
impl UnwindSafe for Ray3
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