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>2011-04-02 07:05:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-02 07:05:49 +0400
commitf1b42a129f0f9299a9e67eb0495131a37464c9cc (patch)
tree99bda9a0c293524a04f0ba4cfd91cc87c378810f /source/blender/blenlib/BLI_math_rotation.h
parent69bd72c3b6aa1fdaab0c1232a6ba1e3e4c9029fa (diff)
add angle wrapping functions: angle_wrap_rad(), angle_wrap_deg().
use with mathutils.
Diffstat (limited to 'source/blender/blenlib/BLI_math_rotation.h')
-rw-r--r--source/blender/blenlib/BLI_math_rotation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h
index 0385ad5846f..ee8c3d5e10c 100644
--- a/source/blender/blenlib/BLI_math_rotation.h
+++ b/source/blender/blenlib/BLI_math_rotation.h
@@ -185,6 +185,9 @@ void vec_apply_track(float vec[3], short axis);
float lens_to_angle(float lens);
float angle_to_lens(float angle);
+float angle_wrap_rad(float angle);
+float angle_wrap_deg(float angle);
+
#ifdef __cplusplus
}
#endif