pub struct B2massData {
pub mass: f32,
pub center: B2vec2,
pub i: 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.
i: f32The rotational inertia of the shape about the local origin.
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 (const: unstable) · Source§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
Source§impl Default for B2massData
impl Default for B2massData
Source§fn default() -> B2massData
fn default() -> B2massData
Returns the “default value” for a type. Read more
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 UnsafeUnpin for B2massData
impl UnwindSafe for B2massData
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