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: QuatThe rotational part of the pose.
translation: Vec3The translational part of the pose.
Trait Implementations§
Source§impl PoseOps<f32> for Pose
impl PoseOps<f32> for Pose
Source§fn translation(&self) -> Vector
fn translation(&self) -> Vector
Get the translation component of this pose as a vector.
Source§fn set_translation(&mut self, tra: Vector)
fn set_translation(&mut self, tra: Vector)
Set the translation component of this pose.
Source§fn prepend_translation(&self, translation: Vector) -> Self
fn prepend_translation(&self, translation: Vector) -> Self
Prepend a translation to this pose.
Source§fn append_translation(&self, translation: Vector) -> Self
fn append_translation(&self, translation: Vector) -> Self
Append a translation to this pose.
Source§fn prepend_rotation(&self, rotation: AngVector) -> Self
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
fn append_rotation(&self, rotation: AngVector) -> Self
Append a rotation (as an axis-angle) to this pose.