Pose

Type Alias Pose 

Source
pub type Pose = Pose3;
Expand description

The transformation matrix type (pose = rotation + translation).

Aliased Type§

pub struct Pose {
    pub rotation: Quat,
    pub translation: Vec3,
}

Fields§

§rotation: Quat

The rotational part of the pose.

§translation: Vec3

The translational part of the pose.

Trait Implementations§

Source§

impl PoseOps<f32> for Pose

Source§

fn rotation(&self) -> Rotation

Get the rotation component of this pose.
Source§

fn translation(&self) -> Vector

Get the translation component of this pose as a vector.
Source§

fn set_translation(&mut self, tra: Vector)

Set the translation component of this pose.
Source§

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

Prepend a translation to this pose.
Source§

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

Append a translation to this pose.
Source§

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

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

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

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