pub struct Intersection {
pub lambda: f64,
pub barycentric: Option<Vector3>,
}Expand description
Struct that define a line in 3D space, with the pivot point and the director vector of the line. It contains the minimal information of the Intersection with a Shape. ‘barycentric’ is provided “for free” because its calculation is needed to know if the line intersects the triangle.
Fields§
§lambda: f64§barycentric: Option<Vector3>Implementations§
Source§impl Intersection
impl Intersection
Trait Implementations§
Source§impl Clone for Intersection
impl Clone for Intersection
Source§fn clone(&self) -> Intersection
fn clone(&self) -> Intersection
Returns a duplicate 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 moreimpl Copy for Intersection
Auto Trait Implementations§
impl Freeze for Intersection
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnwindSafe for Intersection
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