diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-02 07:05:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-02 07:05:49 +0400 |
commit | f1b42a129f0f9299a9e67eb0495131a37464c9cc (patch) | |
tree | 99bda9a0c293524a04f0ba4cfd91cc87c378810f /source/blender/blenlib/BLI_math_rotation.h | |
parent | 69bd72c3b6aa1fdaab0c1232a6ba1e3e4c9029fa (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.h | 3 |
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 |