Realm

oa::image::invert_affine

Invert a 2x3 affine transform matrix, matching invertAffineTransform. The input must be a [2, 3] F32 matrix with a nonsingular linear block. Errors Returns an error unless matrix is a [2, 3] F32 matrix whose 2x2 linear block is nonsingular.

FnRust public API

Function Documentation

pub fn invert_affine( matrix: &Matrix ) -> Result<Matrix>
Invert a 2x3 affine transform matrix, matching invertAffineTransform. The input must be a [2, 3] F32 matrix with a nonsingular linear block. Errors Returns an error unless matrix is a [2, 3] F32 matrix whose 2x2 linear block is nonsingular.