Trait glamour::TransformMap

source ·
pub trait TransformMap<T> {
    type Output;

    // Required method
    fn map(&self, value: T) -> Self::Output;
}
Expand description

The mapping operation from one unit to another through a transform.

Required Associated Types§

source

type Output

Result type of the transformation.

Required Methods§

source

fn map(&self, value: T) -> Self::Output

Map T to Self::Output.

Implementors§

source§

impl<Src, Dst> TransformMap<Point2<Src>> for Transform2<Src, Dst>
where Src: Unit, Src::Scalar: FloatScalar, Dst: Unit<Scalar = Src::Scalar>,

§

type Output = Point2<Dst>

source§

impl<Src, Dst> TransformMap<Point3<Src>> for Transform3<Src, Dst>
where Src: Unit, Src::Scalar: FloatScalar, Dst: Unit<Scalar = Src::Scalar>,

§

type Output = Point3<Dst>

source§

impl<Src, Dst> TransformMap<Vector2<Src>> for Transform2<Src, Dst>
where Src: Unit, Src::Scalar: FloatScalar, Dst: Unit<Scalar = Src::Scalar>,

§

type Output = Vector2<Dst>

source§

impl<Src, Dst> TransformMap<Vector3<Src>> for Transform3<Src, Dst>
where Src: Unit, Src::Scalar: FloatScalar, Dst: Unit<Scalar = Src::Scalar>,

§

type Output = Vector3<Dst>