Struct allegro::Transform
[−]
[src]
pub struct Transform(_);
Methods
impl Transform
[src]
fn identity() -> Transform
fn from_allegro_transform(t: ALLEGRO_TRANSFORM) -> Transform
fn build(x: f32, y: f32, sx: f32, sy: f32, theta: f32) -> Transform
fn get_allegro_transform(&self) -> ALLEGRO_TRANSFORM
fn get_matrix(&self) -> &[[f32; 4]; 4]
fn get_matrix_mut(&mut self) -> &mut [[f32; 4]; 4]
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 Copy for Transform
[src]
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