Struct truster::intersection::Intersection [−][src]
pub struct Intersection { /* fields omitted */ }
Expand description
Stores some information about intersections between rays and shapes. Cloning is constant time and memory.
Implementations
Returns a new Intersection.
t
is the distance between the ray origin and the intersection point.
shape
is the the shape which is intersected with.
Trait Implementations
Implement Hit to get the first intersection which is a hit. The list should be sorted. If
there are no hits, None
is returned.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Intersection
impl !Send for Intersection
impl !Sync for Intersection
impl Unpin for Intersection
impl !UnwindSafe for Intersection
Blanket Implementations
Mutably borrows from an owned value. Read more