Kale
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
Utils.hpp File Reference
#include <Kale/Math/Constants/Constants.hpp>
#include <limits>
#include <random>

Go to the source code of this file.

Namespaces

namespace  Kale
 

Enumerations

enum class  Kale::AngleUnit : bool { Kale::Degree , Kale::Radian }
 

Functions

constexpr float Kale::degToRad (float deg)
 
constexpr float Kale::radToDeg (float rad)
 
template<typename T >
bool Kale::isFloating0 (T num, T epsilon=std::numeric_limits< T >::epsilon())
 
template<typename T >
bool Kale::isFloatingEqual (T num1, T num2, T epsilon=std::numeric_limits< T >::epsilon())
 
template<typename T >
int Kale::sign (T val)
 
template<typename T >
std::enable_if< std::is_floating_point< T >::value, T >::type Kale::randomRange (T min, T max)
 
template<typename T >
std::enable_if< std::is_integral< T >::value, T >::type Kale::randomRange (T min, T max)