pub struct Ray {
pub origin: Vec3,
pub direction: Vec3,
}
Expand description
A ray is an infinite line starting at origin
, going in direction
.
Fields§
§origin: Vec3
The origin of the ray.
direction: Vec3
A normalized vector representing the direction of the ray.
Implementations§
Trait Implementations§
impl Copy for Ray
impl StructuralPartialEq for Ray
Auto Trait Implementations§
impl RefUnwindSafe for Ray
impl Send for Ray
impl Sync for Ray
impl Unpin for Ray
impl UnwindSafe for Ray
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