Pose

Trait Pose 

Source
pub trait Pose<P, R>: Transform<P>
where P: EuclideanSpace,
{ // Required methods fn new(position: P, rotation: R) -> Self; fn set_rotation(&mut self, rotation: R); fn set_position(&mut self, position: P); fn rotation(&self) -> R; fn position(&self) -> P; }
Expand description

Pose abstraction

Required Methods§

Source

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

New pose

Source

fn set_rotation(&mut self, rotation: R)

Set rotation

Source

fn set_position(&mut self, position: P)

Set position

Source

fn rotation(&self) -> R

Read rotation

Source

fn position(&self) -> P

Read position

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

fn set_rotation(&mut self, rotation: R)

Source§

fn set_position(&mut self, position: P)

Source§

fn rotation(&self) -> R

Source§

fn position(&self) -> P

Implementors§