pub struct Intersection<'a> {
pub position: Vector,
pub normal: UnitVector,
pub sphere: &'a Sphere,
}
Fields§
§position: Vector
§normal: UnitVector
§sphere: &'a Sphere
Trait Implementations§
Source§impl<'a> AlmostEqual for Intersection<'a>
impl<'a> AlmostEqual for Intersection<'a>
fn almost_equal(&self, other: &Intersection<'_>) -> bool
Source§impl<'a> Clone for Intersection<'a>
impl<'a> Clone for Intersection<'a>
Source§fn clone(&self) -> Intersection<'a>
fn clone(&self) -> Intersection<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for Intersection<'a>
impl<'a> Debug for Intersection<'a>
impl<'a> Copy for Intersection<'a>
Auto Trait Implementations§
impl<'a> Freeze for Intersection<'a>
impl<'a> RefUnwindSafe for Intersection<'a>
impl<'a> Send for Intersection<'a>
impl<'a> Sync for Intersection<'a>
impl<'a> Unpin for Intersection<'a>
impl<'a> UnwindSafe for Intersection<'a>
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