Trait cgmath::ToComponents

source ·
pub trait ToComponents<P: Point, R: Rotation<P>>where
    <P as Point>::Scalar: BaseFloat,{
    // Required method
    fn decompose(&self) -> (P::Vector, R, P::Vector);
}
Expand description

A trait that allows extracting components (rotation, translation, scale) from an arbitrary transformations

Required Methods§

source

fn decompose(&self) -> (P::Vector, R, P::Vector)

Extract the (scale, rotation, translation) triple

Implementors§

source§

impl<P: Point, R: Rotation<P> + Clone> ToComponents<P, R> for Decomposed<P::Vector, R>where <P as Point>::Scalar: BaseFloat,