diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-26 02:47:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-26 02:47:54 +0400 |
commit | b32bf2c462970912c2e8013fcf6f0ee5e3eaadd5 (patch) | |
tree | 1f676fef36a65b7f9f55ffbf63bf3f68e4a727e0 /source/blender/blenlib/BLI_math_vector.h | |
parent | 2223ca1c20cf480ca77365ff3593066c655de9fa (diff) |
code cleanup: use min_/max_ math functions, add minmax_v2_v2v2.
Diffstat (limited to 'source/blender/blenlib/BLI_math_vector.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index 83b07bae53f..77c0ec0a88f 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -226,6 +226,7 @@ MINLINE void normal_short_to_float_v3(float r[3], const short n[3]); MINLINE void normal_float_to_short_v3(short r[3], const float n[3]); void minmax_v3v3_v3(float min[3], float max[3], const float vec[3]); +void minmax_v2v2_v2(float min[2], float max[2], const float vec[2]); void dist_ensure_v3_v3fl(float v1[3], const float v2[3], const float dist); void dist_ensure_v2_v2fl(float v1[2], const float v2[2], const float dist); |