Struct mupdf::matrix::Matrix[][src]

pub struct Matrix {
    pub a: f32,
    pub b: f32,
    pub c: f32,
    pub d: f32,
    pub e: f32,
    pub f: f32,
}

A row-major 3x3 matrix used for representing transformations of coordinates

Fields

a: f32b: f32c: f32d: f32e: f32f: f32

Implementations

impl Matrix[src]

pub const IDENTITY: Matrix[src]

pub fn new(a: f32, b: f32, c: f32, d: f32, e: f32, f: f32) -> Self[src]

pub fn new_scale(x: f32, y: f32) -> Self[src]

pub fn new_translate(x: f32, y: f32) -> Self[src]

pub fn new_rotate(degrees: f32) -> Self[src]

pub fn concat(&mut self, m: Matrix) -> &mut Self[src]

pub fn scale(&mut self, sx: f32, sy: f32) -> &mut Self[src]

pub fn rotate(&mut self, degrees: f32) -> &mut Self[src]

pub fn pre_translate(&mut self, x: f32, y: f32) -> &mut Self[src]

pub fn pre_shear(&mut self, h: f32, v: f32) -> &mut Self[src]

Trait Implementations

impl Clone for Matrix[src]

impl Debug for Matrix[src]

impl Default for Matrix[src]

impl From<fz_matrix> for Matrix[src]

impl Into<fz_matrix> for &Matrix[src]

impl Into<fz_matrix> for Matrix[src]

impl PartialEq<Matrix> for Matrix[src]

impl StructuralPartialEq for Matrix[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.