pub struct Matrix {
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
pub e: f64,
pub f: f64,
}Expand description
A 2×3 affine transform, in the order PDF writes it: a b c d e f.
Fields§
§a: f64x scale.
b: f64x shear.
c: f64y shear.
d: f64y scale.
e: f64x translation.
f: f64y translation.
Implementations§
Source§impl Matrix
impl Matrix
Sourcepub const fn new(a: f64, b: f64, c: f64, d: f64, e: f64, f: f64) -> Self
pub const fn new(a: f64, b: f64, c: f64, d: f64, e: f64, f: f64) -> Self
A matrix from its six values.
Trait Implementations§
impl Copy for Matrix
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Forget for Matrix
impl Freeze for Matrix
impl Move for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnsafeUnpin for Matrix
impl UnwindSafe for Matrix
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