pub trait Transformed {
Show 16 methods fn append_transform(self, transform: [[f64; 3]; 2]) -> Self;
fn prepend_transform(self, transform: [[f64; 3]; 2]) -> Self;
fn trans(self, x: f64, y: f64) -> Self;
fn rot_rad(self, angle: f64) -> Self;
fn orient(self, x: f64, y: f64) -> Self;
fn scale(self, sx: f64, sy: f64) -> Self;
fn shear(self, x: f64, y: f64) -> Self; fn rot_deg(self, angle: f64) -> Self { ... }
fn trans_pos<P>(self, pos: P) -> Self
    where
        P: Into<[f64; 2]>
, { ... }
fn orient_pos<P>(self, pos: P) -> Self
    where
        P: Into<[f64; 2]>
, { ... }
fn scale_pos<P>(self, pos: P) -> Self
    where
        P: Into<[f64; 2]>
, { ... }
fn zoom(self, s: f64) -> Self { ... }
fn flip_v(self) -> Self { ... }
fn flip_h(self) -> Self { ... }
fn flip_hv(self) -> Self { ... }
fn shear_pos<P>(self, pos: P) -> Self
    where
        P: Into<[f64; 2]>
, { ... }
}
Expand description

Implemented by contexts that can transform.

Required methods

Appends transform to the current one.

Prepends transform to the current one.

Translate x and 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.

Translate position in local coordinates.

Orients x axis to look at point locally.

Scales 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.

Shears in local coordinates.

Implementations on Foreign Types

Implementors