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:
authorCampbell Barton <ideasman42@gmail.com>2013-04-18 03:30:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-18 03:30:19 +0400
commit4a7feafa496b27d21b93d7ff459e580edb00d148 (patch)
tree732e84c0da36c170c64b64f3aa06219434981310 /source/blender/blenlib/intern/math_matrix.c
parented1a08382f2b9f9d11661d2f4c68c496c49f274a (diff)
Support object scale for mesh display options. (currently only uniform scale for thickness test)
Diffstat (limited to 'source/blender/blenlib/intern/math_matrix.c')
-rw-r--r--source/blender/blenlib/intern/math_matrix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c
index 1ec63f11c3d..d9063b80f13 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -445,6 +445,18 @@ void mul_transposed_m3_v3(float mat[3][3], float vec[3])
vec[2] = x * mat[2][0] + y * mat[2][1] + mat[2][2] * vec[2];
}
+void mul_transposed_mat3_m4_v3(float mat[4][4], float vec[3])
+{
+ float x, y;
+
+ x = vec[0];
+ y = vec[1];
+ vec[0] = x * mat[0][0] + y * mat[0][1] + mat[0][2] * vec[2];
+ vec[1] = x * mat[1][0] + y * mat[1][1] + mat[1][2] * vec[2];
+ vec[2] = x * mat[2][0] + y * mat[2][1] + mat[2][2] * vec[2];
+}
+
+
void mul_m3_fl(float m[3][3], float f)
{
int i, j;