pub struct BodyPose<P, R> { /* private fields */ }Expand description
Transform component used throughout the library
Implementations§
Trait Implementations§
Source§impl<P, R> Interpolate<<P as EuclideanSpace>::Scalar> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
P::Diff: VectorSpace + InnerSpace,
R: Rotation<P> + Interpolate<P::Scalar>,
impl<P, R> Interpolate<<P as EuclideanSpace>::Scalar> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
P::Diff: VectorSpace + InnerSpace,
R: Rotation<P> + Interpolate<P::Scalar>,
Source§fn interpolate(&self, other: &Self, amount: P::Scalar) -> Self
fn interpolate(&self, other: &Self, amount: P::Scalar) -> Self
Source§impl<P, R> Pose<P, R> for BodyPose<P, R>
impl<P, R> Pose<P, R> for BodyPose<P, R>
Source§fn new(position: P, rotation: R) -> Self
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)
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)
fn set_position(&mut self, position: P)
Set the position. Sets the dirty flag.
Source§impl<P, R> Transform<P> for BodyPose<P, R>
impl<P, R> Transform<P> for BodyPose<P, R>
Source§fn one() -> Self
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
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
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>
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
fn transform_point(&self, point: P) -> P
Transform a point using this transform.
Source§fn concat(&self, other: &Self) -> Self
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>
fn inverse_transform(&self) -> Option<Self>
Create a transform that “un-does” this one.
Source§fn concat_self(&mut self, other: &Self)
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>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
P::Diff: VectorSpace + InnerSpace,
R: Rotation<P> + Clone,
impl<P, R> TranslationInterpolate<<P as EuclideanSpace>::Scalar> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
P::Diff: VectorSpace + InnerSpace,
R: Rotation<P> + Clone,
Source§fn translation_interpolate(&self, other: &Self, amount: P::Scalar) -> Self
fn translation_interpolate(&self, other: &Self, amount: P::Scalar) -> Self
impl<P, R> StructuralPartialEq for BodyPose<P, R>
Auto Trait Implementations§
impl<P, R> Freeze for BodyPose<P, R>
impl<P, R> RefUnwindSafe for BodyPose<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for BodyPose<P, R>
impl<P, R> Sync for BodyPose<P, R>
impl<P, R> Unpin for BodyPose<P, R>
impl<P, R> UnwindSafe for BodyPose<P, R>where
P: UnwindSafe,
R: UnwindSafe,
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