From 2387ba93d268235d1f8faeec16e17c9d2c78fa21 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 26 Apr 2017 11:55:50 +0200 Subject: BLI_math: add helper function to extract XY 2D scale from a 4D matrix. --- source/blender/blenlib/BLI_math_matrix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenlib/BLI_math_matrix.h') diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h index 029f6872b04..90aff1fcbbc 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -223,6 +223,7 @@ void scale_m4_fl(float R[4][4], float scale); float mat3_to_scale(const float M[3][3]); float mat4_to_scale(const float M[4][4]); +float mat4_to_xy_scale(const float M[4][4]); void size_to_mat3(float R[3][3], const float size[3]); void size_to_mat4(float R[4][4], const float size[3]); -- cgit v1.2.3