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>2017-06-09 12:31:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-06-09 12:31:27 +0300
commitd7f33668d6e69f22e0b0ee28be0039df00f63ad3 (patch)
tree62d2650e7e1b4db39106653c549ac1405b4a9186 /source/blender/blenlib/BLI_math_rotation.h
parentd583af00263f8a77ab646e3758777f38147bd742 (diff)
Math Lib: Add mat3_from_axis_conversion_single
Single axis version of mat3_from_axis_conversion, when the second axis isn't important (orienting an arrow for eg).
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r--source/blender/blenlib/BLI_math_rotation.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h
index d60be30e10d..e059327a490 100644
--- a/source/blender/blenlib/BLI_math_rotation.h
+++ b/source/blender/blenlib/BLI_math_rotation.h
@@ -218,8 +218,12 @@ float angle_wrap_deg(float angle);
float angle_compat_rad(float angle, float angle_compat);
-int mat3_from_axis_conversion(int from_forward, int from_up, int to_forward, int to_up,
- float r_mat[3][3]);
+bool mat3_from_axis_conversion(
+ int src_forward, int src_up, int dst_forward, int dst_up,
+ float r_mat[3][3]);
+bool mat3_from_axis_conversion_single(
+ int src_axis, int dst_axis,
+ float r_mat[3][3]);
#ifdef __cplusplus
}