Struct libliquidfun_sys::box2d::ffi::b2Transform
source · #[repr(C)]pub struct b2Transform {
pub p: b2Vec2,
pub q: b2Rot,
}Expand description
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.
Fields§
§p: b2Vec2§q: b2RotImplementations§
source§impl b2Transform
impl b2Transform
sourcepub fn SetIdentity(self: Pin<&mut b2Transform>)
pub fn SetIdentity(self: Pin<&mut b2Transform>)
Set this to the identity transform.
Trait Implementations§
source§impl CopyNew for b2Transform
impl CopyNew for b2Transform
source§unsafe fn copy_new(
other: &b2Transform,
this: Pin<&mut MaybeUninit<b2Transform>>
)
unsafe fn copy_new( other: &b2Transform, this: Pin<&mut MaybeUninit<b2Transform>> )
Synthesized copy constructor.
source§impl Drop for b2Transform
impl Drop for b2Transform
source§fn drop(self: &mut b2Transform)
fn drop(self: &mut b2Transform)
Synthesized destructor.
source§impl ExternType for b2Transform
impl ExternType for b2Transform
source§impl MakeCppStorage for b2Transform
impl MakeCppStorage for b2Transform
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2Transform
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2Transform
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 b2Transform)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2Transform)
Frees a C++ allocation which has not yet
had a constructor called. Read more
source§impl MoveNew for b2Transform
impl MoveNew for b2Transform
source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2Transform>>,
this: Pin<&mut MaybeUninit<b2Transform>>
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2Transform>>, this: Pin<&mut MaybeUninit<b2Transform>> )
Synthesized move constructor.
impl UniquePtrTarget for b2Transform
impl VectorElement for b2Transform
impl WeakPtrTarget for b2Transform
Auto Trait Implementations§
impl RefUnwindSafe for b2Transform
impl Send for b2Transform
impl Sync for b2Transform
impl Unpin for b2Transform
impl UnwindSafe for b2Transform
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