pub struct ShapeProxy {
pub points: [Vec2; 8],
pub count: i32,
pub radius: f32,
}Expand description
A distance proxy used by the GJK algorithm. It encapsulates any shape.
You can provide between 1 and MAX_POLYGON_VERTICES points and a radius.
(b2ShapeProxy)
Fields§
§points: [Vec2; 8]The point cloud
count: i32The 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 ShapeProxy
impl Clone for ShapeProxy
Source§fn clone(&self) -> ShapeProxy
fn clone(&self) -> ShapeProxy
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 ShapeProxy
Source§impl Debug for ShapeProxy
impl Debug for ShapeProxy
Source§impl Default for ShapeProxy
impl Default for ShapeProxy
Source§impl PartialEq for ShapeProxy
impl PartialEq for ShapeProxy
impl StructuralPartialEq for ShapeProxy
Auto Trait Implementations§
impl Freeze for ShapeProxy
impl RefUnwindSafe for ShapeProxy
impl Send for ShapeProxy
impl Sync for ShapeProxy
impl Unpin for ShapeProxy
impl UnsafeUnpin for ShapeProxy
impl UnwindSafe for ShapeProxy
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