ncollide3d::utils

Trait IsometryOps

Source
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§

Source

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

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

Source

fn inverse_transform_unit_vector(&self, v: &Unit<Vector<N>>) -> Unit<Vector<N>>

Transform a unit vector by the inverse of self.

Source

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.

Implementations on Foreign Types§

Source§

impl<N: RealField + Copy> IsometryOps<N> for Isometry3<N>

Source§

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

Source§

fn inverse_transform_unit_vector(&self, v: &Unit<Vector<N>>) -> Unit<Vector<N>>

Source§

fn lerp_slerp(&self, other: &Self, t: N) -> Self

Implementors§