Struct crystal_ball::math::Ray
source · pub struct Ray {
pub origin: Point3,
pub direction: Vec3,
pub last_ior: f64,
}
Expand description
A ray in 3D space.
Fields§
§origin: Point3
The ray’s origin.
direction: Vec3
The ray’s direction.
last_ior: f64
The index of refraction of the ray’s last medium.
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