#[non_exhaustive]pub enum SeparationResult {
Apart {
axis: Vec3,
distance: Scalar,
},
Overlapping,
}Expand description
Outcome of a separating-axis query.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Apart
A separating axis exists: the shapes are disjoint.
Fields
Overlapping
No separating axis exists: the shapes share at least one point.
No depth is reported. See the crate docs: penetration depth and contact extent are different measurements and this crate refuses to conflate them.
Trait Implementations§
Source§impl Clone for SeparationResult
impl Clone for SeparationResult
Source§fn clone(&self) -> SeparationResult
fn clone(&self) -> SeparationResult
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 Debug for SeparationResult
impl Debug for SeparationResult
Source§impl PartialEq for SeparationResult
impl PartialEq for SeparationResult
impl Copy for SeparationResult
impl StructuralPartialEq for SeparationResult
Auto Trait Implementations§
impl Freeze for SeparationResult
impl RefUnwindSafe for SeparationResult
impl Send for SeparationResult
impl Sync for SeparationResult
impl Unpin for SeparationResult
impl UnwindSafe for SeparationResult
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