Struct planar::IdentityTransform
[−]
[src]
pub struct IdentityTransform<T, UnitFrom, W, UnitTo>(_);
Trait Implementations
impl<T: Into<W>, UnitFrom, W, UnitTo> AxisAlignedTransform<T, UnitFrom> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type OutT = W
type OutUnit = UnitTo
fn transform_position_x(&self, x: PosX<T, UnitFrom>) -> PosX<W, UnitTo>
[src]
fn transform_position_y(&self, y: PosY<T, UnitFrom>) -> PosY<W, UnitTo>
[src]
fn transform_width(&self, w: Width<T, UnitFrom>) -> Width<W, UnitTo>
[src]
fn transform_height(&self, h: Height<T, UnitFrom>) -> Height<W, UnitTo>
[src]
fn transform_size(
&self,
s: Size<T, UnitFrom>
) -> Size<Self::OutT, Self::OutUnit>
[src]
&self,
s: Size<T, UnitFrom>
) -> Size<Self::OutT, Self::OutUnit>
fn transform_rect(
&self,
r: Rect<T, UnitFrom>
) -> Rect<Self::OutT, Self::OutUnit>
[src]
&self,
r: Rect<T, UnitFrom>
) -> Rect<Self::OutT, Self::OutUnit>
fn transform_point(
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
[src]
&self,
p: Point<T, UnitFrom>
) -> Point<Self::OutT, Self::OutUnit>
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<PosX<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = PosX<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: PosX<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<PosY<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = PosY<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: PosY<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<Width<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = Width<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: Width<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<Height<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = Height<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: Height<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<Point<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = Point<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: Point<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Into<W>, UnitFrom, W, UnitTo> Mul<Size<T, UnitFrom>> for IdentityTransform<T, UnitFrom, W, UnitTo>
[src]
type Output = Size<W, UnitTo>
The resulting type after applying the *
operator.
fn mul(self, p: Size<T, UnitFrom>) -> Self::Output
[src]
Performs the *
operation.