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§
Sourcefn translation(&self) -> N::Vector
fn translation(&self) -> N::Vector
Get the translation component of this pose as a vector.
Sourcefn set_translation(&mut self, tra: N::Vector)
fn set_translation(&mut self, tra: N::Vector)
Set the translation component of this pose.
Sourcefn prepend_translation(&self, translation: N::Vector) -> Self
fn prepend_translation(&self, translation: N::Vector) -> Self
Prepend a translation to this pose.
Sourcefn append_translation(&self, translation: N::Vector) -> Self
fn append_translation(&self, translation: N::Vector) -> Self
Append a translation to this pose.
Sourcefn prepend_rotation(&self, axisangle: N::AngVector) -> Self
fn prepend_rotation(&self, axisangle: N::AngVector) -> Self
Prepend a rotation (as an axis-angle) to this pose.
Sourcefn append_rotation(&self, axisangle: N::AngVector) -> Self
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.
impl PoseOps<WideF32x4> for Isometry3<SimdReal>
Available on crate features
dim3 and simd-is-enabled only.