Struct allegro::transformations::Transform
source · pub struct Transform(_);
Implementations
sourceimpl Transform
impl Transform
pub fn identity() -> Transform
pub fn wrap(t: ALLEGRO_TRANSFORM) -> Transform
pub fn build(x: f32, y: f32, sx: f32, sy: f32, theta: f32) -> Transform
pub fn get_allegro_transform(&self) -> ALLEGRO_TRANSFORM
pub fn get_matrix(&self) -> &[[f32; 4]; 4]
pub fn get_matrix_mut(&mut self) -> &mut [[f32; 4]; 4]
pub fn translate(&mut self, x: f32, y: f32)
pub fn rotate(&mut self, theta: f32)
pub fn scale(&mut self, sx: f32, sy: f32)
pub fn transform_coordinates(&self, x: f32, y: f32) -> (f32, f32)
pub fn compose(&mut self, other: &Transform)
pub fn invert(&mut self)
pub fn check_inverse(&self, tol: f32) -> bool
Trait Implementations
impl Copy for Transform
impl Send for Transform
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more