Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-09-25 19:48:11 +0300
committerMike Erwin <significant.bit@gmail.com>2016-09-25 19:48:11 +0300
commit9bea012b8ca081a1bf696bf0af354ac327334354 (patch)
tree296ce96ad84a8fbe014a40f5dfae863042688a8c /source/blender/blenlib/BLI_math_matrix.h
parent5c6baf1ee9754e39392926cd077bb2097baf39b9 (diff)
specialize mat3 multiply routines
Same as 5c6baf1ee9754e39392926cd077bb2097baf39b9 but for 3x3 matrices.
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r--source/blender/blenlib/BLI_math_matrix.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h
index a5868e00c8e..73effb310f7 100644
--- a/source/blender/blenlib/BLI_math_matrix.h
+++ b/source/blender/blenlib/BLI_math_matrix.h
@@ -72,10 +72,17 @@ void mul_m4_m4m3(float R[4][4], const float A[4][4], const float B[3][3]);
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4]);
void mul_m3_m3m4(float R[3][3], const float A[4][4], const float B[3][3]);
-/* special matrix multiplies */
-void mul_m4_m4m4_uniq(float R[4][4], const float A[4][4], const float B[4][4]); /* R <-- AB, R is neither A nor B */
-void mul_m4_m4_pre(float R[4][4], const float A[4][4]); /* R <-- AR */
-void mul_m4_m4_post(float R[4][4], const float B[4][4]); /* R <-- RB */
+/* special matrix multiplies
+ * uniq: R <-- AB, R is neither A nor B
+ * pre: R <-- AR
+ * post: R <-- RB
+ */
+void mul_m3_m3m3_uniq(float R[3][3], const float A[3][3], const float B[3][3]);
+void mul_m3_m3_pre(float R[3][3], const float A[3][3]);
+void mul_m3_m3_post(float R[3][3], const float B[3][3]);
+void mul_m4_m4m4_uniq(float R[4][4], const float A[4][4], const float B[4][4]);
+void mul_m4_m4_pre(float R[4][4], const float A[4][4]);
+void mul_m4_m4_post(float R[4][4], const float B[4][4]);
/* mul_m3_series */
void _va_mul_m3_series_3(float R[3][3], float M1[3][3], float M2[3][3]) ATTR_NONNULL();