#[repr(C)]pub struct b2ShapeProxy {
pub points: [b2Vec2; 8],
pub count: c_int,
pub radius: f32,
}Expand description
A distance proxy is used by the GJK algorithm. It encapsulates any shape. You can provide between 1 and B2_MAX_POLYGON_VERTICES and a radius.
Fields§
§points: [b2Vec2; 8]The point cloud
count: c_intThe number of points. Must be greater than 0.
radius: f32The external radius of the point cloud. May be zero.
Trait Implementations§
Source§impl Clone for b2ShapeProxy
impl Clone for b2ShapeProxy
Source§fn clone(&self) -> b2ShapeProxy
fn clone(&self) -> b2ShapeProxy
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 b2ShapeProxy
impl Debug for b2ShapeProxy
impl Copy for b2ShapeProxy
Auto Trait Implementations§
impl Freeze for b2ShapeProxy
impl RefUnwindSafe for b2ShapeProxy
impl Send for b2ShapeProxy
impl Sync for b2ShapeProxy
impl Unpin for b2ShapeProxy
impl UnwindSafe for b2ShapeProxy
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)