parry3d::utils

Trait IsometryOpt

source
pub trait IsometryOpt {
    // Required methods
    fn inv_mul(self, rhs: &Isometry<f32>) -> Isometry<f32>;
    fn prepend_to(self, rhs: &Isometry<f32>) -> Isometry<f32>;
    fn transform_point(self, p: &Point<f32>) -> Point<f32>;
    fn transform_vector(self, v: &Vector<f32>) -> Vector<f32>;
    fn transform_unit_vector(self, v: &Unit<Vector<f32>>) -> Unit<Vector<f32>>;
    fn inverse_transform_point(self, p: &Point<f32>) -> Point<f32>;
    fn inverse_transform_vector(self, v: &Vector<f32>) -> Vector<f32>;
    fn inverse_transform_unit_vector(
        self,
        v: &Unit<Vector<f32>>,
    ) -> Unit<Vector<f32>>;
}
Expand description

Various operations usable with Option<Isometry> and Option<&Isometry> where None is assumed to be equivalent to the identity.

Required Methods§

source

fn inv_mul(self, rhs: &Isometry<f32>) -> Isometry<f32>

Computes self.inverse() * rhs.

source

fn prepend_to(self, rhs: &Isometry<f32>) -> Isometry<f32>

Computes rhs * self.

source

fn transform_point(self, p: &Point<f32>) -> Point<f32>

Computes self * p.

source

fn transform_vector(self, v: &Vector<f32>) -> Vector<f32>

Computes self * v.

source

fn transform_unit_vector(self, v: &Unit<Vector<f32>>) -> Unit<Vector<f32>>

Computes self * v.

source

fn inverse_transform_point(self, p: &Point<f32>) -> Point<f32>

Computes self.inverse() * p.

source

fn inverse_transform_vector(self, v: &Vector<f32>) -> Vector<f32>

Computes self.inverse() * v.

source

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

Computes self.inverse() * v.

Implementations on Foreign Types§

source§

impl IsometryOpt for Option<Isometry<f32>>

source§

impl<'a> IsometryOpt for Option<&'a Isometry<f32>>

Implementors§