diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-09-25 20:01:18 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-09-25 20:01:18 +0300 |
commit | a731c75442f636f067a1c73bcf7b57e867daeb19 (patch) | |
tree | b216952b80d33c6e30e1d93dd1e4104f38738432 /source/blender/blenlib/BLI_math_matrix.h | |
parent | 9bea012b8ca081a1bf696bf0af354ac327334354 (diff) |
port math function from Viewport FX
mul_v4_m4v3(r, M, v) means r = M * vec4(v, 1.0)
Based on rB194998766c65
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_matrix.h | 1 |
1 files changed, 1 insertions, 0 deletions
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]); |