pub struct SimplexVertex {
pub w_a: Vec2,
pub w_b: Vec2,
pub w: Vec2,
pub a: f32,
pub index_a: i32,
pub index_b: i32,
}Expand description
Simplex vertex for debugging the GJK algorithm. (b2SimplexVertex)
Fields§
§w_a: Vec2support point in proxy A
w_b: Vec2support point in proxy B
w: Vec2w_b - w_a
a: f32barycentric coordinate for closest point
index_a: i32w_a index
index_b: i32w_b index
Trait Implementations§
Source§impl Clone for SimplexVertex
impl Clone for SimplexVertex
Source§fn clone(&self) -> SimplexVertex
fn clone(&self) -> SimplexVertex
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 SimplexVertex
Source§impl Debug for SimplexVertex
impl Debug for SimplexVertex
Source§impl Default for SimplexVertex
impl Default for SimplexVertex
Source§fn default() -> SimplexVertex
fn default() -> SimplexVertex
Returns the “default value” for a type. Read more
Source§impl PartialEq for SimplexVertex
impl PartialEq for SimplexVertex
impl StructuralPartialEq for SimplexVertex
Auto Trait Implementations§
impl Freeze for SimplexVertex
impl RefUnwindSafe for SimplexVertex
impl Send for SimplexVertex
impl Sync for SimplexVertex
impl Unpin for SimplexVertex
impl UnsafeUnpin for SimplexVertex
impl UnwindSafe for SimplexVertex
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