pub struct Affine {
pub a: f32,
pub b: f32,
pub c: f32,
pub d: f32,
pub tx: f32,
pub ty: f32,
}Fields§
§a: f32§b: f32§c: f32§d: f32§tx: f32§ty: f32Implementations§
Source§impl Affine
impl Affine
pub const IDENTITY: Affine
pub const fn translate(x: f32, y: f32) -> Self
pub const fn scale(x: f32, y: f32) -> Self
pub fn rotate(radians: f32) -> Self
pub fn then(&self, next: &Affine) -> Affine
pub fn about(&self, center: Point) -> Affine
pub fn apply(&self, p: Point) -> Point
pub fn apply_rect(&self, rect: &Rect) -> Rect
pub fn inverse(&self) -> Option<Affine>
Trait Implementations§
impl Copy for Affine
impl StructuralPartialEq for Affine
Auto Trait Implementations§
impl Forget for Affine
impl Freeze for Affine
impl Move for Affine
impl RefUnwindSafe for Affine
impl Send for Affine
impl Sync for Affine
impl Unpin for Affine
impl UnsafeUnpin for Affine
impl UnwindSafe for Affine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more