pub trait IsometryOps<N: RealField + Copy> {
// Required methods
fn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>;
fn inverse_transform_unit_vector(
&self,
v: &Unit<Vector<N>>,
) -> Unit<Vector<N>>;
fn lerp_slerp(&self, other: &Self, t: N) -> Self;
}
Expand description
Extra operations with isometries.
Required Methods§
Sourcefn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>
fn absolute_transform_vector(&self, v: &Vector<N>) -> Vector<N>
Transform a vector by the absolute value of the homogeneous matrix
equivalent to self
.
Sourcefn inverse_transform_unit_vector(&self, v: &Unit<Vector<N>>) -> Unit<Vector<N>>
fn inverse_transform_unit_vector(&self, v: &Unit<Vector<N>>) -> Unit<Vector<N>>
Transform a unit vector by the inverse of self
.
Sourcefn lerp_slerp(&self, other: &Self, t: N) -> Self
fn lerp_slerp(&self, other: &Self, t: N) -> Self
Interpolates between two isometries, using LERP for the translation part and SLERP for the rotation part.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.