Struct planar::Translation
[−]
[src]
pub struct Translation<T, Unit>(_);
Trait Implementations
impl<T: Clone + Add<T, Output = T>, Unit> AxisAlignedTransform<T, Unit> for Translation<T, Unit>
[src]
type OutT = T
type OutUnit = Unit
fn transform_position_x(&self, x: PosX<T, Unit>) -> PosX<T, Unit>
[src]
fn transform_position_y(&self, y: PosY<T, Unit>) -> PosY<T, Unit>
[src]
fn transform_width(&self, w: Width<T, Unit>) -> Width<T, Unit>
[src]
fn transform_height(&self, h: Height<T, Unit>) -> Height<T, Unit>
[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: Clone + Add<T, Output = T>, Unit> Mul<PosX<T, Unit>> for Translation<T, Unit>
[src]
type Output = PosX<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: PosX<T, Unit>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Clone + Add<T, Output = T>, Unit> Mul<PosY<T, Unit>> for Translation<T, Unit>
[src]
type Output = PosY<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: PosY<T, Unit>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Clone + Add<T, Output = T>, Unit> Mul<Width<T, Unit>> for Translation<T, Unit>
[src]
type Output = Width<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: Width<T, Unit>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Clone + Add<T, Output = T>, Unit> Mul<Height<T, Unit>> for Translation<T, Unit>
[src]
type Output = Height<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: Height<T, Unit>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Clone + Add<T, Output = T>, Unit> Mul<Point<T, Unit>> for Translation<T, Unit>
[src]
type Output = Point<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: Point<T, Unit>) -> Self::Output
[src]
Performs the *
operation.
impl<T: Clone + Add<T, Output = T>, Unit> Mul<Size<T, Unit>> for Translation<T, Unit>
[src]
type Output = Size<T, Unit>
The resulting type after applying the *
operator.
fn mul(self, p: Size<T, Unit>) -> Self::Output
[src]
Performs the *
operation.