From fc8b0ed5e572d0e3e0ee68f5e0b2e7060acfa2cf Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 18 Oct 2013 23:38:51 +0000 Subject: Move utility functions from mball to mathutils --- source/blender/blenlib/intern/math_matrix.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenlib/intern/math_matrix.c') diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c index d24200fc0b7..6b96f0515b9 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -2070,3 +2070,9 @@ void pseudoinverse_m3_m3(float Ainv[3][3], float A[3][3], float epsilon) } } +bool has_zero_axis_m4(float matrix[4][4]) +{ + return len_squared_v3(matrix[0]) < FLT_EPSILON || + len_squared_v3(matrix[1]) < FLT_EPSILON || + len_squared_v3(matrix[2]) < FLT_EPSILON; +} -- cgit v1.2.3