diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-30 14:58:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-30 14:58:36 +0400 |
commit | 76e989d7b1303c877e8469513eae4ed746a8efe5 (patch) | |
tree | c67376b4919e0f3981ff11101164e76869a2832c /source/blender/blenlib/intern/math_vector_inline.c | |
parent | 298a03ee634d2ef7eef0d4a7f1c23c7df7593a4c (diff) |
function renaming for own recently added BLI_math functions, suggested by Brecht.
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index eff735ef8d5..8e5040d983b 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -418,15 +418,18 @@ MINLINE float mul_project_m4_v3_zfac(float mat[4][4], const float co[3]) (mat[2][3] * co[2]) + mat[3][3]; } -MINLINE float mul_m3_v3_single_x(float M[3][3], const float a[3]) +/** + * Has the effect of mul_m3_v3(), on a single axis. + */ +MINLINE float dot_m3_v3_row_x(float M[3][3], const float a[3]) { return M[0][0] * a[0] + M[1][0] * a[1] + M[2][0] * a[2]; } -MINLINE float mul_m3_v3_single_y(float M[3][3], const float a[3]) +MINLINE float dot_m3_v3_row_y(float M[3][3], const float a[3]) { return M[0][1] * a[0] + M[1][1] * a[1] + M[2][1] * a[2]; } -MINLINE float mul_m3_v3_single_z(float M[3][3], const float a[3]) +MINLINE float dot_m3_v3_row_z(float M[3][3], const float a[3]) { return M[0][2] * a[0] + M[1][2] * a[1] + M[2][2] * a[2]; } |