Struct rhusics_core::BodyPose
source · pub struct BodyPose<P, R> { /* private fields */ }
Expand description
Transform component used throughout the library
Implementations
Trait Implementations
sourceimpl<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>,
sourcefn interpolate(&self, other: &Self, amount: P::Scalar) -> Self
fn interpolate(&self, other: &Self, amount: P::Scalar) -> Self
sourceimpl<P: PartialEq, R: PartialEq> PartialEq<BodyPose<P, R>> for BodyPose<P, R>
impl<P: PartialEq, R: PartialEq> PartialEq<BodyPose<P, R>> for BodyPose<P, R>
sourceimpl<P, R> Pose<P, R> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
R: Rotation<P>,
impl<P, R> Pose<P, R> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
R: Rotation<P>,
sourcefn 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.
sourcefn 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.
sourcefn set_position(&mut self, position: P)
fn set_position(&mut self, position: P)
Set the position. Sets the dirty flag.
sourceimpl<P, R> Transform<P> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
R: Rotation<P>,
impl<P, R> Transform<P> for BodyPose<P, R>where
P: EuclideanSpace,
P::Scalar: BaseFloat,
R: Rotation<P>,
sourcefn one() -> Self
fn one() -> Self
Create an identity transformation. That is, a transformation which
does nothing. Read more
sourcefn 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. Read moresourcefn transform_vector(&self, vec: P::Diff) -> P::Diff
fn transform_vector(&self, vec: P::Diff) -> P::Diff
Transform a vector using this transform.
sourcefn 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
sourcefn transform_point(&self, point: P) -> P
fn transform_point(&self, point: P) -> P
Transform a point using this transform.
sourcefn 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. Read more
sourcefn inverse_transform(&self) -> Option<Self>
fn inverse_transform(&self) -> Option<Self>
Create a transform that “un-does” this one.
sourcefn concat_self(&mut self, other: &Self)
fn concat_self(&mut self, other: &Self)
Combine this transform with another, in-place.
sourceimpl<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,
sourcefn 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> RefUnwindSafe for BodyPose<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more