pub struct Ctm {
pub a: f64,
pub b: f64,
pub c: f64,
pub d: f64,
pub e: f64,
pub f: f64,
}Expand description
Current Transformation Matrix (CTM) — affine transform.
Represented as six values [a, b, c, d, e, f] corresponding to:
| a b 0 |
| c d 0 |
| e f 1 |Point transformation: (x', y') = (a*x + c*y + e, b*x + d*y + f)
Fields§
§a: f64Scale X (horizontal scaling).
b: f64Shear Y.
c: f64Shear X.
d: f64Scale Y (vertical scaling).
e: f64Translate X.
f: f64Translate Y.
Implementations§
Trait Implementations§
impl Copy for Ctm
impl StructuralPartialEq for Ctm
Auto Trait Implementations§
impl Freeze for Ctm
impl RefUnwindSafe for Ctm
impl Send for Ctm
impl Sync for Ctm
impl Unpin for Ctm
impl UnsafeUnpin for Ctm
impl UnwindSafe for Ctm
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