From a731c75442f636f067a1c73bcf7b57e867daeb19 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Sun, 25 Sep 2016 19:01:18 +0200 Subject: port math function from Viewport FX mul_v4_m4v3(r, M, v) means r = M * vec4(v, 1.0) Based on rB194998766c65 --- 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 73effb310f7..fc4bca12dac 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -121,6 +121,7 @@ void mul_mat3_m4_v3(const float M[4][4], float r[3]); void mul_v3_mat3_m4v3(float r[3], const float M[4][4], const float v[3]); void mul_m4_v4(const float M[4][4], float r[4]); void mul_v4_m4v4(float r[4], const float M[4][4], const float v[4]); +void mul_v4_m4v3(float r[4], const float M[4][4], const float v[3]); /* v has implicit w = 1.0f */ void mul_project_m4_v3(const float M[4][4], float vec[3]); void mul_v3_project_m4_v3(float r[3], const float mat[4][4], const float vec[3]); void mul_v2_project_m4_v3(float r[2], const float M[4][4], const float vec[3]); -- cgit v1.2.3