Enum ProximityProjection Copy item path Source pub enum ProximityProjection {
Minimum3d,
Horizontal,
Vertical {
footprint_offset_metres: f64 ,
direction: VerticalDirection ,
surfaces: VerticalSurfaces ,
},
PlanOverlap,
}Expand description The direction in which a distance between two bodies is measured.
No projection’s distance bounds another’s from below, so the broad phase
prunes each by its own box gap (crate::projected_candidate_pairs ).
Shortest distance between the two surfaces in space.
Plan distance between the two footprints: zero when they meet in plan.
Gap between the two bodies’ vertical extents (bottom to top), for
bodies above or below one another. The bodies are related when their
footprints overlap with positive area or, with a positive
footprint_offset_metres, when the counterpart’s footprint comes
closer than the offset to the subject’s (the subject’s footprint grown
by the offset), and when the counterpart lies in direction from the
subject. Unrelated bodies have no distance in this projection.
surfaces other than VerticalSurfaces::Extents measure between
two chosen surfaces instead (see VerticalSurfaces ).
Whether the footprints overlap with positive area: distance zero when
they do, none when they do not.
Whether a pair may have no distance at all in this projection.
The projection’s spelling in evidence locators and messages.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.