Skip to main content

PoseOps

Trait PoseOps 

Source
pub trait PoseOps<N: ScalarType>: Copy {
    // Required methods
    fn rotation(&self) -> N::Rotation;
    fn translation(&self) -> N::Vector;
    fn set_translation(&mut self, tra: N::Vector);
    fn prepend_translation(&self, translation: N::Vector) -> Self;
    fn append_translation(&self, translation: N::Vector) -> Self;
    fn prepend_rotation(&self, axisangle: N::AngVector) -> Self;
    fn append_rotation(&self, axisangle: N::AngVector) -> Self;
}
Expand description

Trait for pose types (isometry) providing access to rotation and translation.

Required Methods§

Source

fn rotation(&self) -> N::Rotation

Get the rotation component of this pose.

Source

fn translation(&self) -> N::Vector

Get the translation component of this pose as a vector.

Source

fn set_translation(&mut self, tra: N::Vector)

Set the translation component of this pose.

Source

fn prepend_translation(&self, translation: N::Vector) -> Self

Prepend a translation to this pose.

Source

fn append_translation(&self, translation: N::Vector) -> Self

Append a translation to this pose.

Source

fn prepend_rotation(&self, axisangle: N::AngVector) -> Self

Prepend a rotation (as an axis-angle) to this pose.

Source

fn append_rotation(&self, axisangle: N::AngVector) -> Self

Append a rotation (as an axis-angle) to this pose.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PoseOps<WideF32x4> for Isometry3<SimdReal>

Available on crate features dim3 and simd-is-enabled only.
Source§

fn rotation(&self) -> UnitQuaternion<SimdReal>

Source§

fn translation(&self) -> Vector3<SimdReal>

Source§

fn set_translation(&mut self, tra: Vector3<SimdReal>)

Source§

fn prepend_translation(&self, translation: Vector3<SimdReal>) -> Self

Source§

fn append_translation(&self, translation: Vector3<SimdReal>) -> Self

Source§

fn prepend_rotation(&self, rotation: Vector3<SimdReal>) -> Self

Source§

fn append_rotation(&self, rotation: Vector3<SimdReal>) -> Self

Implementors§