[][src]Function mupdf_sys::fz_translate

pub unsafe extern "C" fn fz_translate(tx: f32, ty: f32) -> fz_matrix

Create a translation matrix.

The returned matrix is of the form [ 1 0 0 1 tx ty ].

m: A place to store the created matrix.

tx, ty: Translation distances along the X- and Y-axes. A translation of 0 will not cause any translation along the relevant axis.

Returns m.