pub struct SimplexCache {
pub metric: f32,
pub count: u16,
pub index_a: [u8; 4],
pub index_b: [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. (b3SimplexCache)
Fields§
§metric: f32Value used to compare length, area, volume of two simplexes.
count: u16The number of stored simplex points
index_a: [u8; 4]The cached simplex indices on shape A
index_b: [u8; 4]The cached simplex indices on shape B
Trait Implementations§
Source§impl Clone for SimplexCache
impl Clone for SimplexCache
Source§fn clone(&self) -> SimplexCache
fn clone(&self) -> SimplexCache
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 SimplexCache
Source§impl Debug for SimplexCache
impl Debug for SimplexCache
Source§impl Default for SimplexCache
impl Default for SimplexCache
Source§fn default() -> SimplexCache
fn default() -> SimplexCache
Returns the “default value” for a type. Read more
Source§impl PartialEq for SimplexCache
impl PartialEq for SimplexCache
impl StructuralPartialEq for SimplexCache
Auto Trait Implementations§
impl Freeze for SimplexCache
impl RefUnwindSafe for SimplexCache
impl Send for SimplexCache
impl Sync for SimplexCache
impl Unpin for SimplexCache
impl UnsafeUnpin for SimplexCache
impl UnwindSafe for SimplexCache
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