pub struct LocalManifold {
pub normal: Vec2,
pub points: [LocalManifoldPoint; 2],
pub point_count: i32,
}Expand description
Contact manifold in local coordinates (frame A). (b2LocalManifold)
Fields§
§normal: Vec2The unit normal vector in frame A, points from shape A to shape B
points: [LocalManifoldPoint; 2]The manifold points, up to two are possible in 2D
point_count: i32The number of contact points, will be 0, 1, or 2
Trait Implementations§
Source§impl Clone for LocalManifold
impl Clone for LocalManifold
Source§fn clone(&self) -> LocalManifold
fn clone(&self) -> LocalManifold
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 LocalManifold
Source§impl Debug for LocalManifold
impl Debug for LocalManifold
Source§impl Default for LocalManifold
impl Default for LocalManifold
Source§fn default() -> LocalManifold
fn default() -> LocalManifold
Returns the “default value” for a type. Read more
Source§impl PartialEq for LocalManifold
impl PartialEq for LocalManifold
impl StructuralPartialEq for LocalManifold
Auto Trait Implementations§
impl Freeze for LocalManifold
impl RefUnwindSafe for LocalManifold
impl Send for LocalManifold
impl Sync for LocalManifold
impl Unpin for LocalManifold
impl UnsafeUnpin for LocalManifold
impl UnwindSafe for LocalManifold
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