BodyPose

Struct BodyPose 

Source
pub struct BodyPose<P, R> { /* private fields */ }
Expand description

Transform component used throughout the library

Implementations§

Source§

impl<P, R> BodyPose<P, R>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>,

Source

pub fn clear(&mut self)

Clear the dirty flag

Trait Implementations§

Source§

impl<P: Clone, R: Clone> Clone for BodyPose<P, R>

Source§

fn clone(&self) -> BodyPose<P, R>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: Debug, R: Debug> Debug for BodyPose<P, R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P, R> Interpolate<<P as EuclideanSpace>::Scalar> for BodyPose<P, R>

Source§

fn interpolate(&self, other: &Self, amount: P::Scalar) -> Self

Interpolate between self and other, using amount to calculate how much of other to use. Read more
Source§

impl<P: PartialEq, R: PartialEq> PartialEq for BodyPose<P, R>

Source§

fn eq(&self, other: &BodyPose<P, R>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P, R> Pose<P, R> for BodyPose<P, R>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>,

Source§

fn new(position: P, rotation: R) -> Self

Create a new BodyPose with initial state given by the supplied position and rotation.

Source§

fn set_rotation(&mut self, rotation: R)

Set the rotation. Will also compute the inverse rotation. Sets the dirty flag.

Source§

fn set_position(&mut self, position: P)

Set the position. Sets the dirty flag.

Source§

fn rotation(&self) -> R

Borrows the rotation attribute

Source§

fn position(&self) -> P

Borrows the position attribute

Source§

impl<P, R> Transform<P> for BodyPose<P, R>
where P: EuclideanSpace, P::Scalar: BaseFloat, R: Rotation<P>,

Source§

fn one() -> Self

Create an identity transformation. That is, a transformation which does nothing.
Source§

fn look_at(eye: P, center: P, up: P::Diff) -> Self

Create a transformation that rotates a vector to look at center from eye, using up for orientation.
Source§

fn transform_vector(&self, vec: P::Diff) -> P::Diff

Transform a vector using this transform.
Source§

fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>

Inverse transform a vector using this transform
Source§

fn transform_point(&self, point: P) -> P

Transform a point using this transform.
Source§

fn concat(&self, other: &Self) -> Self

Combine this transform with another, yielding a new transformation which has the effects of both.
Source§

fn inverse_transform(&self) -> Option<Self>

Create a transform that “un-does” this one.
Source§

fn concat_self(&mut self, other: &Self)

Combine this transform with another, in-place.
Source§

impl<P, R> TranslationInterpolate<<P as EuclideanSpace>::Scalar> for BodyPose<P, R>

Source§

fn translation_interpolate(&self, other: &Self, amount: P::Scalar) -> Self

Interpolate between self and other, using amount to calculate how much of other to use. Read more
Source§

impl<P, R> StructuralPartialEq for BodyPose<P, R>

Auto Trait Implementations§

§

impl<P, R> Freeze for BodyPose<P, R>
where P: Freeze, R: Freeze,

§

impl<P, R> RefUnwindSafe for BodyPose<P, R>

§

impl<P, R> Send for BodyPose<P, R>
where P: Send, R: Send,

§

impl<P, R> Sync for BodyPose<P, R>
where P: Sync, R: Sync,

§

impl<P, R> Unpin for BodyPose<P, R>
where P: Unpin, R: Unpin,

§

impl<P, R> UnwindSafe for BodyPose<P, R>
where P: UnwindSafe, R: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.