#[repr(C)]pub struct Matrix {
pub xx: c_double,
pub yx: c_double,
pub xy: c_double,
pub yy: c_double,
pub x0: c_double,
pub y0: c_double,
}Fields
xx: c_doubleyx: c_doublexy: c_doubleyy: c_doublex0: c_doubley0: c_doubleImplementations
sourceimpl Matrix
impl Matrix
pub fn identity() -> Matrix
pub fn new(xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64) -> Matrix
pub fn multiply(left: &Matrix, right: &Matrix) -> Matrix
pub fn translate(&mut self, tx: f64, ty: f64)
pub fn scale(&mut self, sx: f64, sy: f64)
pub fn rotate(&mut self, angle: f64)
pub fn invert(&mut self)
pub fn try_invert(&self) -> Result<Matrix, Status>
pub fn transform_distance(&self, _dx: f64, _dy: f64) -> (f64, f64)
pub fn transform_point(&self, _x: f64, _y: f64) -> (f64, f64)
Trait Implementations
impl Copy for Matrix
impl StructuralPartialEq for Matrix
Auto Trait Implementations
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
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