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 IsometryOpt for Option<Isometry<f32>>

Implementors§