MjBodyDataViewMut

Struct MjBodyDataViewMut 

Source
pub struct MjBodyDataViewMut<'d> {
Show 15 fields pub xfrc_applied: PointerViewMut<'d, MjtNum>, pub xpos: PointerViewMut<'d, MjtNum>, pub xquat: PointerViewMut<'d, MjtNum>, pub xmat: PointerViewMut<'d, MjtNum>, pub xipos: PointerViewMut<'d, MjtNum>, pub ximat: PointerViewMut<'d, MjtNum>, pub subtree_com: PointerViewMut<'d, MjtNum>, pub cinert: PointerViewMut<'d, MjtNum>, pub crb: PointerViewMut<'d, MjtNum>, pub cvel: PointerViewMut<'d, MjtNum>, pub subtree_linvel: PointerViewMut<'d, MjtNum>, pub subtree_angmom: PointerViewMut<'d, MjtNum>, pub cacc: PointerViewMut<'d, MjtNum>, pub cfrc_int: PointerViewMut<'d, MjtNum>, pub cfrc_ext: PointerViewMut<'d, MjtNum>,
}
Expand description

A mutable view to body variables of MjData.

Fields§

§xfrc_applied: PointerViewMut<'d, MjtNum>§xpos: PointerViewMut<'d, MjtNum>§xquat: PointerViewMut<'d, MjtNum>§xmat: PointerViewMut<'d, MjtNum>§xipos: PointerViewMut<'d, MjtNum>§ximat: PointerViewMut<'d, MjtNum>§subtree_com: PointerViewMut<'d, MjtNum>§cinert: PointerViewMut<'d, MjtNum>§crb: PointerViewMut<'d, MjtNum>§cvel: PointerViewMut<'d, MjtNum>§subtree_linvel: PointerViewMut<'d, MjtNum>§subtree_angmom: PointerViewMut<'d, MjtNum>§cacc: PointerViewMut<'d, MjtNum>§cfrc_int: PointerViewMut<'d, MjtNum>§cfrc_ext: PointerViewMut<'d, MjtNum>

Implementations§

Source§

impl MjBodyDataViewMut<'_>

Source

pub fn zero(&mut self)

Resets the internal variables to 0.0.

Auto Trait Implementations§

§

impl<'d> Freeze for MjBodyDataViewMut<'d>

§

impl<'d> RefUnwindSafe for MjBodyDataViewMut<'d>

§

impl<'d> !Send for MjBodyDataViewMut<'d>

§

impl<'d> !Sync for MjBodyDataViewMut<'d>

§

impl<'d> Unpin for MjBodyDataViewMut<'d>

§

impl<'d> !UnwindSafe for MjBodyDataViewMut<'d>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.