Trait conrod::backend::piston::draw::Transformed [−][src]
pub trait Transformed { 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, v: [f64; 2]) -> Self; fn rot_deg(self, angle: f64) -> Self { ... } fn zoom(self, s: f64) -> Self { ... } fn flip_v(self) -> Self { ... } fn flip_h(self) -> Self { ... } fn flip_hv(self) -> Self { ... } }
Implemented by contexts that can transform.
Required Methods
fn append_transform(self, transform: [[f64; 3]; 2]) -> Self
Appends transform to the current one.
fn prepend_transform(self, transform: [[f64; 3]; 2]) -> Self
Prepends transform to the current one.
fn trans(self, x: f64, y: f64) -> Self
Translate x and y in local coordinates.
fn rot_rad(self, angle: f64) -> Self
Rotate radians in local coordinates.
fn orient(self, x: f64, y: f64) -> Self
Orients x axis to look at point locally.
Leaves x axis unchanged if the point to look at is the origin.
fn scale(self, sx: f64, sy: f64) -> Self
Scales in local coordinates.
fn shear(self, v: [f64; 2]) -> Self
Shears in local coordinates.
Provided Methods
fn rot_deg(self, angle: f64) -> Self
Rotates degrees in local coordinates.
fn zoom(self, s: f64) -> Self
Scales in both directions in local coordinates.
fn flip_v(self) -> Self
Flips vertically in local coordinates.
fn flip_h(self) -> Self
Flips horizontally in local coordinates.
fn flip_hv(self) -> Self
Flips horizontally and vertically in local coordinates.
Implementations on Foreign Types
impl Transformed for [[f64; 3]; 2]
[src]
impl Transformed for [[f64; 3]; 2]
fn append_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
[src]
fn append_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
fn prepend_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
[src]
fn prepend_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2]
fn trans(self, x: f64, y: f64) -> [[f64; 3]; 2]
[src]
fn trans(self, x: f64, y: f64) -> [[f64; 3]; 2]
fn rot_rad(self, angle: f64) -> [[f64; 3]; 2]
[src]
fn rot_rad(self, angle: f64) -> [[f64; 3]; 2]
fn orient(self, x: f64, y: f64) -> [[f64; 3]; 2]
[src]
fn orient(self, x: f64, y: f64) -> [[f64; 3]; 2]
fn scale(self, sx: f64, sy: f64) -> [[f64; 3]; 2]
[src]
fn scale(self, sx: f64, sy: f64) -> [[f64; 3]; 2]
fn shear(self, v: [f64; 2]) -> [[f64; 3]; 2]
[src]
fn shear(self, v: [f64; 2]) -> [[f64; 3]; 2]
fn rot_deg(self, angle: f64) -> Self
[src]
fn rot_deg(self, angle: f64) -> Self
fn zoom(self, s: f64) -> Self
[src]
fn zoom(self, s: f64) -> Self
fn flip_v(self) -> Self
[src]
fn flip_v(self) -> Self
fn flip_h(self) -> Self
[src]
fn flip_h(self) -> Self
fn flip_hv(self) -> Self
[src]
fn flip_hv(self) -> Self
Implementors
impl Transformed for Context