#[repr(C)]pub struct b3FeaturePair {
pub owner1: u8,
pub index1: u8,
pub owner2: u8,
pub index2: u8,
}Expand description
Contact points are always the result of two edges intersecting. It can be two edges of the same shape, which is just a shape vertex. Or a contact point can be the result of two edges crossing from different shapes. This is designed to support hull versus hull, but it is adapted to work with all shape types. The feature pair is used to identify contact points for temporal coherence and warm starting.
Fields§
§owner1: u8Incoming type (either edge on shape A or shape B)
index1: u8Incoming edge index (into associated shape array)
owner2: u8Outgoing type (either edge on shape A or shape B)
index2: u8Outgoing edge index (into associated shape array)
Trait Implementations§
Source§impl Clone for b3FeaturePair
impl Clone for b3FeaturePair
Source§fn clone(&self) -> b3FeaturePair
fn clone(&self) -> b3FeaturePair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3FeaturePair
Auto Trait Implementations§
impl Freeze for b3FeaturePair
impl RefUnwindSafe for b3FeaturePair
impl Send for b3FeaturePair
impl Sync for b3FeaturePair
impl Unpin for b3FeaturePair
impl UnsafeUnpin for b3FeaturePair
impl UnwindSafe for b3FeaturePair
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