Trait piston_window::Transformed[][src]

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

Implemented by contexts that can transform.

Required methods

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

Appends transform to the current one.

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

Prepends transform to the current one.

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

Translate x and y in local coordinates.

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

Rotate radians in local coordinates.

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

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

Scales in local coordinates.

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

Shears in local coordinates.

Loading content...

Provided methods

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

Rotates degrees in local coordinates.

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

Translate position in local coordinates.

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

Orients x axis to look at point locally.

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

Scales in local coordinates.

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

Scales in both directions in local coordinates.

pub fn flip_v(self) -> Self[src]

Flips vertically in local coordinates.

pub fn flip_h(self) -> Self[src]

Flips horizontally in local coordinates.

pub fn flip_hv(self) -> Self[src]

Flips horizontally and vertically in local coordinates.

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

Shears in local coordinates.

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl Transformed for Context[src]

Loading content...