Function mupdf_sys::fz_pre_shear

source ·
pub unsafe extern "C" fn fz_pre_shear(
    m: fz_matrix,
    sx: f32,
    sy: f32
) -> fz_matrix
Expand description

Premultiply a matrix with a shearing matrix.

The shearing matrix is of the form [ 1 sy sx 1 0 0 ].

m: pointer to matrix to premultiply

sx, sy: Shearing factors. A shearing factor of 0.0 will not cause any shearing along the relevant axis.

Returns m (updated).