#[repr(u32)]
pub enum CandidateIntersection {
Triangle,
AABB,
}
Expand description
Describes the type of the intersection which is currently the candidate in a ray query,
returned by RayQuery::get_candidate_intersection_type
.
Variants§
Triangle
A potential intersection with a triangle is being considered.
AABB
A potential intersection with an axis-aligned bounding box is being considered.
Trait Implementations§
source§impl Clone for CandidateIntersection
impl Clone for CandidateIntersection
source§fn clone(&self) -> CandidateIntersection
fn clone(&self) -> CandidateIntersection
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 Hash for CandidateIntersection
impl Hash for CandidateIntersection
source§impl Ord for CandidateIntersection
impl Ord for CandidateIntersection
source§fn cmp(&self, other: &CandidateIntersection) -> Ordering
fn cmp(&self, other: &CandidateIntersection) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CandidateIntersection> for CandidateIntersection
impl PartialEq<CandidateIntersection> for CandidateIntersection
source§fn eq(&self, other: &CandidateIntersection) -> bool
fn eq(&self, other: &CandidateIntersection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CandidateIntersection> for CandidateIntersection
impl PartialOrd<CandidateIntersection> for CandidateIntersection
source§fn partial_cmp(&self, other: &CandidateIntersection) -> Option<Ordering>
fn partial_cmp(&self, other: &CandidateIntersection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more