#[repr(C)]pub struct b3SimplexCache {
pub metric: f32,
pub count: u16,
pub indexA: [u8; 4],
pub indexB: [u8; 4],
}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§
§metric: f32Value use to compare length, area, volume of two simplexes.
count: u16The number of stored simplex points
indexA: [u8; 4]The cached simplex indices on shape A
indexB: [u8; 4]The cached simplex indices on shape B
Trait Implementations§
Source§impl Clone for b3SimplexCache
impl Clone for b3SimplexCache
Source§fn clone(&self) -> b3SimplexCache
fn clone(&self) -> b3SimplexCache
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 b3SimplexCache
Auto Trait Implementations§
impl Freeze for b3SimplexCache
impl RefUnwindSafe for b3SimplexCache
impl Send for b3SimplexCache
impl Sync for b3SimplexCache
impl Unpin for b3SimplexCache
impl UnsafeUnpin for b3SimplexCache
impl UnwindSafe for b3SimplexCache
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