#[repr(C)]pub struct b2MassData {
pub mass: f32,
pub center: b2Vec2,
pub rotationalInertia: f32,
}Expand description
This holds the mass data computed for a shape.
Fields§
§mass: f32The mass of the shape, usually in kilograms.
center: b2Vec2The position of the shape’s centroid relative to the shape’s origin.
rotationalInertia: f32The rotational inertia of the shape about the shape center.
Trait Implementations§
Source§impl Clone for b2MassData
impl Clone for b2MassData
Source§fn clone(&self) -> b2MassData
fn clone(&self) -> b2MassData
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 b2MassData
impl Debug for b2MassData
impl Copy for b2MassData
Auto Trait Implementations§
impl Freeze for b2MassData
impl RefUnwindSafe for b2MassData
impl Send for b2MassData
impl Sync for b2MassData
impl Unpin for b2MassData
impl UnwindSafe for b2MassData
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)