[−][src]Struct mupdf::Matrix
Fields
a: f32
b: f32
c: f32
d: f32
e: f32
f: 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
[src]
impl Send for Matrix
[src]
impl Sync for Matrix
[src]
impl Unpin for Matrix
[src]
impl UnwindSafe for Matrix
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,