Trait parry3d::utils::IsometryOpt

source ·
pub trait IsometryOpt {
    // Required methods
    fn inv_mul(self, rhs: &Isometry<Real>) -> Isometry<Real>;
    fn prepend_to(self, rhs: &Isometry<Real>) -> Isometry<Real>;
    fn transform_point(self, p: &Point<Real>) -> Point<Real>;
    fn transform_vector(self, v: &Vector<Real>) -> Vector<Real>;
    fn transform_unit_vector(self, v: &Unit<Vector<Real>>) -> Unit<Vector<Real>>;
    fn inverse_transform_point(self, p: &Point<Real>) -> Point<Real>;
    fn inverse_transform_vector(self, v: &Vector<Real>) -> Vector<Real>;
    fn inverse_transform_unit_vector(
        self,
        v: &Unit<Vector<Real>>
    ) -> Unit<Vector<Real>>;
}
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<Real>) -> Isometry<Real>

Computes self.inverse() * rhs.

source

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

Computes rhs * self.

source

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

Computes self * p.

source

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

Computes self * v.

source

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

Computes self * v.

source

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

Computes self.inverse() * p.

source

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

Computes self.inverse() * v.

source

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

Computes self.inverse() * v.

Implementations on Foreign Types§

source§

impl IsometryOpt for Option<Isometry<Real>>

source§

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

Implementors§