Trait conrod_piston::draw::Transformed[][src]

pub trait Transformed {
Show 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

fn append_transform(self, transform: [[f64; 3]; 2]) -> Self[src]

Appends transform to the current one.

fn prepend_transform(self, transform: [[f64; 3]; 2]) -> Self[src]

Prepends transform to the current one.

fn trans(self, x: f64, y: f64) -> Self[src]

Translate x and y in local coordinates.

fn rot_rad(self, angle: f64) -> Self[src]

Rotate radians in local coordinates.

fn orient(self, x: f64, y: f64) -> Self[src]

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[src]

Scales in local coordinates.

fn shear(self, x: f64, y: f64) -> Self[src]

Shears in local coordinates.

Provided methods

fn rot_deg(self, angle: f64) -> Self[src]

Rotates degrees in local coordinates.

fn trans_pos<P>(self, pos: P) -> Self where
    P: Into<[f64; 2]>, 
[src]

Translate position in local coordinates.

fn orient_pos<P>(self, pos: P) -> Self where
    P: Into<[f64; 2]>, 
[src]

Orients x axis to look at point locally.

fn scale_pos<P>(self, pos: P) -> Self where
    P: Into<[f64; 2]>, 
[src]

Scales in local coordinates.

fn zoom(self, s: f64) -> Self[src]

Scales in both directions in local coordinates.

fn flip_v(self) -> Self[src]

Flips vertically in local coordinates.

fn flip_h(self) -> Self[src]

Flips horizontally in local coordinates.

fn flip_hv(self) -> Self[src]

Flips horizontally and vertically in local coordinates.

fn shear_pos<P>(self, pos: P) -> Self where
    P: Into<[f64; 2]>, 
[src]

Shears in local coordinates.

Implementations on Foreign Types

impl Transformed for [[f64; 3]; 2][src]

pub fn append_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2][src]

pub fn prepend_transform(self, transform: [[f64; 3]; 2]) -> [[f64; 3]; 2][src]

pub fn trans(self, x: f64, y: f64) -> [[f64; 3]; 2][src]

pub fn rot_rad(self, angle: f64) -> [[f64; 3]; 2][src]

pub fn orient(self, x: f64, y: f64) -> [[f64; 3]; 2][src]

pub fn scale(self, sx: f64, sy: f64) -> [[f64; 3]; 2][src]

pub fn shear(self, x: f64, y: f64) -> [[f64; 3]; 2][src]

Implementors

impl Transformed for Context[src]

pub fn append_transform(self, transform: [[f64; 3]; 2]) -> Context[src]

pub fn prepend_transform(self, transform: [[f64; 3]; 2]) -> Context[src]

pub fn trans(self, x: f64, y: f64) -> Context[src]

pub fn rot_rad(self, angle: f64) -> Context[src]

pub fn orient(self, x: f64, y: f64) -> Context[src]

pub fn scale(self, sx: f64, sy: f64) -> Context[src]

pub fn shear(self, x: f64, y: f64) -> Context[src]