#[repr(C)]pub struct b2ChainSegment {
pub ghost1: b2Vec2,
pub segment: b2Segment,
pub ghost2: b2Vec2,
pub chainId: c_int,
}Expand description
A line segment with one-sided collision. Only collides on the right side. Several of these are generated for a chain shape. ghost1 -> point1 -> point2 -> ghost2
Fields§
§ghost1: b2Vec2The tail ghost vertex
segment: b2SegmentThe line segment
ghost2: b2Vec2The head ghost vertex
chainId: c_intThe owning chain shape index (internal usage only)
Trait Implementations§
Source§impl Clone for b2ChainSegment
impl Clone for b2ChainSegment
Source§fn clone(&self) -> b2ChainSegment
fn clone(&self) -> b2ChainSegment
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 b2ChainSegment
impl Debug for b2ChainSegment
impl Copy for b2ChainSegment
Auto Trait Implementations§
impl Freeze for b2ChainSegment
impl RefUnwindSafe for b2ChainSegment
impl Send for b2ChainSegment
impl Sync for b2ChainSegment
impl Unpin for b2ChainSegment
impl UnwindSafe for b2ChainSegment
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)