Struct allegro::Transform
[−]
[src]
pub struct Transform(pub ALLEGRO_TRANSFORM);
Methods
impl Transform
[src]
fn identity() -> Transform
fn build(x: f32, y: f32, sx: f32, sy: f32, theta: f32) -> Transform
fn translate(&mut self, x: f32, y: f32)
fn rotate(&mut self, theta: f32)
fn scale(&mut self, sx: f32, sy: f32)
fn transform_coordinates(&self, x: f32, y: f32) -> (f32, f32)
fn compose(&mut self, other: &Transform)
fn invert(&mut self)
fn check_inverse(&self, tol: f32) -> bool
Trait Implementations
impl Clone for Transform
[src]
fn clone(&self) -> Transform
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more