[Bf-blender-cvs] [f4074f31919] bli-math-basic-types: Correct naming

Hans Goudey noreply at git.blender.org
Wed Feb 16 16:34:08 CET 2022


Commit: f4074f319198240fc58fa14dbcc07a52a89afa12
Author: Hans Goudey
Date:   Tue Feb 15 11:51:28 2022 -0600
Branches: bli-math-basic-types
https://developer.blender.org/rBf4074f319198240fc58fa14dbcc07a52a89afa12

Correct naming

===================================================================

M	source/blender/blenlib/BLI_math_base.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_math_base.hh b/source/blender/blenlib/BLI_math_base.hh
index bb88770ce2f..828130374bd 100644
--- a/source/blender/blenlib/BLI_math_base.hh
+++ b/source/blender/blenlib/BLI_math_base.hh
@@ -61,10 +61,10 @@ template<typename T, BLI_ENABLE_IF((math_is_float<T>))> inline T safe_mod(const
   return (b != 0) ? std::fmod(a, b) : 0;
 }
 
-template<typename T> inline void min_max(const T &vector, T &min_vec, T &max_vec)
+template<typename T> inline void min_max(const T &value, T &min, T &max)
 {
-  min_vec = min(vector, min_vec);
-  max_vec = max(vector, max_vec);
+  min = math::min(value, min);
+  max = math::max(value, max);
 }
 
 template<typename T, BLI_ENABLE_IF((math_is_float<T>))>



More information about the Bf-blender-cvs mailing list