Function mupdf_sys::fz_pre_rotate

source ·
pub unsafe extern "C" fn fz_pre_rotate(
    m: fz_matrix,
    degrees: f32
) -> fz_matrix
Expand description

Rotate a transformation by premultiplying.

The premultiplied matrix is of the form [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].

m: Pointer to matrix to premultiply.

degrees: Degrees of counter clockwise rotation. Values less than zero and greater than 360 are handled as expected.

Returns m (updated).