pub struct Affine {
pub sx: f32,
pub ky: f32,
pub kx: f32,
pub sy: f32,
pub tx: f32,
pub ty: f32,
}Expand description
A 2D affine transform, in the order tiny-skia’s Transform::from_row
takes: a point (x, y) goes to (sx·x + kx·y + tx, ky·x + sy·y + ty).
Fields§
§sx: f32How far x moves along x.
ky: f32How far x moves along y.
kx: f32How far y moves along x.
sy: f32How far y moves along y.
tx: f32Added to x.
ty: f32Added to y.
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