#[repr(C)]pub struct fz_matrix {
pub a: f32,
pub b: f32,
pub c: f32,
pub d: f32,
pub e: f32,
pub f: f32,
}
Expand description
fz_matrix
is a row-major 3x3 matrix used for representing
transformations of coordinates throughout MuPDF.
Since all points reside in a two-dimensional space, one vector
is always a constant unit vector; hence only some elements may
vary in a matrix. Below is how the elements map between
different representations.
/ a b 0 <br>| c d 0 | normally represented as [ a b c d e f ].
\ e f 1 /
Fields§
§a: f32
§b: f32
§c: f32
§d: f32
§e: f32
§f: f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for fz_matrix
impl RefUnwindSafe for fz_matrix
impl Send for fz_matrix
impl Sync for fz_matrix
impl Unpin for fz_matrix
impl UnwindSafe for fz_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