#[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
| 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