#[repr(C)]pub struct b2SimplexCache {
pub count: u16,
pub indexA: [u8; 3],
pub indexB: [u8; 3],
}Expand description
Used to warm start the GJK simplex. If you call this function multiple times with nearby transforms this might improve performance. Otherwise you can zero initialize this. The distance cache must be initialized to zero on the first call. Users should generally just zero initialize this structure for each call.
Fields§
§count: u16The number of stored simplex points
indexA: [u8; 3]The cached simplex indices on shape A
indexB: [u8; 3]The cached simplex indices on shape B
Trait Implementations§
Source§impl Clone for b2SimplexCache
impl Clone for b2SimplexCache
Source§fn clone(&self) -> b2SimplexCache
fn clone(&self) -> b2SimplexCache
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2SimplexCache
impl Debug for b2SimplexCache
impl Copy for b2SimplexCache
Auto Trait Implementations§
impl Freeze for b2SimplexCache
impl RefUnwindSafe for b2SimplexCache
impl Send for b2SimplexCache
impl Sync for b2SimplexCache
impl Unpin for b2SimplexCache
impl UnwindSafe for b2SimplexCache
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)