Trait graphics::Transformed [] [src]

pub trait Transformed: Sized {
    fn append_transform(self, transform: Matrix2d) -> Self;
    fn prepend_transform(self, transform: Matrix2d) -> Self;
    fn trans(self, x: Scalar, y: Scalar) -> Self;
    fn rot_rad(self, angle: Scalar) -> Self;
    fn orient(self, x: Scalar, y: Scalar) -> Self;
    fn scale(self, sx: Scalar, sy: Scalar) -> Self;
    fn shear(self, v: Vec2d) -> Self;

    fn rot_deg(self, angle: Scalar) -> Self { ... }
    fn zoom(self, s: Scalar) -> Self { ... }
    fn flip_v(self) -> Self { ... }
    fn flip_h(self) -> Self { ... }
    fn flip_hv(self) -> Self { ... }
}
[]

Implemented by contexts that can transform.

Required Methods

[]

Appends transform to the current one.

[]

Prepends transform to the current one.

[]

Translate x an y in local coordinates.

[]

Rotate radians in local coordinates.

[]

Orients x axis to look at point locally.

Leaves x axis unchanged if the point to look at is the origin.

[]

Scales in local coordinates.

[]

Shears in local coordinates.

Provided Methods

[]

Rotates degrees in local coordinates.

[]

Scales in both directions in local coordinates.

[]

Flips vertically in local coordinates.

[]

Flips horizontally in local coordinates.

[]

Flips horizontally and vertically in local coordinates.

Implementors