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 for Pose

Source§

fn absolute_transform_vector(&self, v: Vector) -> Vector

Transform a vector by the absolute value of the homogeneous matrix equivalent to self.