Trait planar::AxisAlignedTransform
[−]
[src]
pub trait AxisAlignedTransform<T, UnitFrom> { type OutT; type OutUnit; fn transform_position_x(
&self,
x: PosX<T, UnitFrom>
) -> PosX<Self::OutT, Self::OutUnit>; fn transform_position_y(
&self,
y: PosY<T, UnitFrom>
) -> PosY<Self::OutT, Self::OutUnit>; fn transform_width(
&self,
w: Width<T, UnitFrom>
) -> Width<Self::OutT, Self::OutUnit>; fn transform_height(
&self,
h: Height<T, UnitFrom>
) -> Height<Self::OutT, Self::OutUnit>; fn transform_size(
&self,
s: Size<T, UnitFrom>
) -> Size<Self::OutT, Self::OutUnit> { ... } fn transform_rect(
&self,
r: Rect<T, UnitFrom>
) -> Rect<Self::OutT, Self::OutUnit> { ... } fn transform_point(
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit> { ... } }
Associated Types
Required Methods
fn transform_position_x(
&self,
x: PosX<T, UnitFrom>
) -> PosX<Self::OutT, Self::OutUnit>
&self,
x: PosX<T, UnitFrom>
) -> PosX<Self::OutT, Self::OutUnit>
fn transform_position_y(
&self,
y: PosY<T, UnitFrom>
) -> PosY<Self::OutT, Self::OutUnit>
&self,
y: PosY<T, UnitFrom>
) -> PosY<Self::OutT, Self::OutUnit>
fn transform_width(
&self,
w: Width<T, UnitFrom>
) -> Width<Self::OutT, Self::OutUnit>
&self,
w: Width<T, UnitFrom>
) -> Width<Self::OutT, Self::OutUnit>
fn transform_height(
&self,
h: Height<T, UnitFrom>
) -> Height<Self::OutT, Self::OutUnit>
&self,
h: Height<T, UnitFrom>
) -> Height<Self::OutT, Self::OutUnit>
Provided Methods
fn transform_size(
&self,
s: Size<T, UnitFrom>
) -> Size<Self::OutT, Self::OutUnit>
&self,
s: Size<T, UnitFrom>
) -> Size<Self::OutT, Self::OutUnit>
fn transform_rect(
&self,
r: Rect<T, UnitFrom>
) -> Rect<Self::OutT, Self::OutUnit>
&self,
r: Rect<T, UnitFrom>
) -> Rect<Self::OutT, Self::OutUnit>
fn transform_point(
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
Trait Implementations
impl<T, UnitFrom, W, UnitTo> Transform<T, UnitFrom> for AxisAlignedTransform<T, UnitFrom, OutT = W, OutUnit = UnitTo>
[src]
type OutT = W
type OutUnit = UnitTo
fn transform_point(
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
[src]
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
Implementors
impl<T: Into<W>, UnitFrom, W, UnitTo> AxisAlignedTransform<T, UnitFrom> for IdentityTransform<T, UnitFrom, W, UnitTo> type OutT = W; type OutUnit = UnitTo;
impl<T: Clone + Add<T, Output = T>, Unit> AxisAlignedTransform<T, Unit> for Translation<T, Unit> type OutT = T; type OutUnit = Unit;
impl<T: Clone + Mul<V, Output = W>, V: Clone, UnitFrom, W, UnitTo> AxisAlignedTransform<T, UnitFrom> for ScaleFactor<T, V, W, UnitFrom, UnitTo> type OutT = W; type OutUnit = UnitTo;
impl<T, V, W, Y, Z, UnitFrom, UnitTo> AxisAlignedTransform<T, UnitFrom> for AxisAlignedMatrixTransform<T, V, W, Y, Z, UnitFrom, UnitTo> where
T: Mul<V, Output = W>,
V: Clone,
W: Add<Y, Output = Z> + Into<Z>,
Y: Clone, type OutT = Z; type OutUnit = UnitTo;