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>2007-09-03 02:53:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-03 02:53:59 +0400
commit04a2eb2e4e95c1d87c384e69f4c3ed3a6b3552f3 (patch)
tree1312fdd3394cbac2b39b290fdd2840b0ff74b7de /source/blender/blenlib/BLI_arithb.h
parentb1c30dff885aa31417ec0389c479570ad0394967 (diff)
adding 2 new functions
Mat3ToScalef and Mat4ToScalef These return a floating point scale value which is the average of the 3 axies. Use this to adjust curve radius when applying scale/rot
Diffstat (limited to 'source/blender/blenlib/BLI_arithb.h')
-rw-r--r--source/blender/blenlib/BLI_arithb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_arithb.h b/source/blender/blenlib/BLI_arithb.h
index 1adc840dfe4..b2043bfcf93 100644
--- a/source/blender/blenlib/BLI_arithb.h
+++ b/source/blender/blenlib/BLI_arithb.h
@@ -333,6 +333,9 @@ void MinMax3(float *min, float *max, float *vec);
void SizeToMat3(float *size, float mat[][3]);
void SizeToMat4(float *size, float mat[][4]);
+float Mat3ToScalef(float mat[][3]);
+float Mat4ToScalef(float mat[][4]);
+
void printmatrix3(char *str, float m[][3]);
void printmatrix4(char *str, float m[][4]);