Struct libliquidfun_sys::box2d::ffi::b2MassData
source · #[repr(C)]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.
Implementations§
source§impl b2MassData
impl b2MassData
Trait Implementations§
source§impl CopyNew for b2MassData
impl CopyNew for b2MassData
source§unsafe fn copy_new(other: &b2MassData, this: Pin<&mut MaybeUninit<b2MassData>>)
unsafe fn copy_new(other: &b2MassData, this: Pin<&mut MaybeUninit<b2MassData>>)
Synthesized copy constructor.
source§impl Drop for b2MassData
impl Drop for b2MassData
source§fn drop(self: &mut b2MassData)
fn drop(self: &mut b2MassData)
Synthesized destructor.
source§impl ExternType for b2MassData
impl ExternType for b2MassData
source§impl MakeCppStorage for b2MassData
impl MakeCppStorage for b2MassData
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2MassData
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2MassData
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2MassData)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2MassData)
Frees a C++ allocation which has not yet
had a constructor called. Read more
source§impl MoveNew for b2MassData
impl MoveNew for b2MassData
source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2MassData>>,
this: Pin<&mut MaybeUninit<b2MassData>>
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2MassData>>, this: Pin<&mut MaybeUninit<b2MassData>> )
Synthesized move constructor.
impl UniquePtrTarget for b2MassData
impl VectorElement for b2MassData
impl WeakPtrTarget for b2MassData
Auto Trait Implementations§
impl RefUnwindSafe for b2MassData
impl Send for b2MassData
impl Sync for b2MassData
impl Unpin 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