File diff r8129:f8fcdf826c59 → r8130:bece2e5c7460
src/core/math_func.hpp
Show inline comments
 
@@ -211,4 +211,16 @@ template<typename T> static inline bool 
 
	return (uint)(x - min) < (max - min);
 
}
 

	
 
/**
 
 * Type safe swap operation
 
 * @param a variable to swap with b
 
 * @param b variable to swap with a
 
 */
 
template<typename T> void Swap(T& a, T& b)
 
{
 
	T t = a;
 
	a = b;
 
	b = t;
 
}
 

	
 
#endif /* MATH_FUNC_HPP */