Skip to main content

Pose

Type Alias Pose 

Source
pub type Pose = Pose3;
Expand description

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

Aliased Type§

#[repr(C)]
pub struct Pose { pub rotation: Quat, pub translation: Vec3, pub padding: u32, }

Fields§

§rotation: Quat

The rotational part of the pose.

§translation: Vec3

The translational part of the pose.

§padding: u32

Explicit padding for compatibility with bytemuck and targets like spirv.

Can have any value as it is never read from or written to.

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.