|
bool | saga::core::isBetweenPoints (const glm::vec3 &point, const glm::vec3 &begin, const glm::vec3 &end) |
|
glm::vec3 | saga::core::getHorizontalAngle (const glm::vec3 &vec) |
|
glm::vec3 | saga::core::rotationToDirection (const glm::vec3 &vec, const glm::vec3 &forwards={0, 0, 1}) |
|
float | saga::core::radToDeg (float radians) |
| Utility function to convert a radian value to degrees. More...
|
|
double | saga::core::radToDeg (double radians) |
| Utility function to convert a radian value to degrees. More...
|
|
float | saga::core::degToRad (float degrees) |
| Utility function to convert a degrees value to radians. More...
|
|
double | saga::core::degToRad (double degrees) |
| Utility function to convert a degrees value to radians. More...
|
|
template<class T > |
const T & | saga::core::min_ (const T &a, const T &b) |
| returns minimum of two values. Own implementation to get rid of the STL (VS6 problems) More...
|
|
template<class T > |
const T & | saga::core::min_ (const T &a, const T &b, const T &c) |
| returns minimum of three values. Own implementation to get rid of the STL (VS6 problems) More...
|
|
template<class T > |
const T & | saga::core::max_ (const T &a, const T &b) |
| returns maximum of two values. Own implementation to get rid of the STL (VS6 problems) More...
|
|
template<class T > |
const T & | saga::core::max_ (const T &a, const T &b, const T &c) |
| returns maximum of three values. Own implementation to get rid of the STL (VS6 problems) More...
|
|
template<class T > |
T | saga::core::abs_ (const T &a) |
| returns abs of two values. Own implementation to get rid of STL (VS6 problems) More...
|
|
template<class T > |
T | saga::core::lerp (const T &a, const T &b, const float t) |
|
template<class T > |
const T | saga::core::clamp (const T &value, const T &low, const T &high) |
| clamps a value between low and high More...
|
|
template<class T1 , class T2 > |
void | saga::core::swap (T1 &a, T2 &b) |
| swaps the content of the passed parameters More...
|
|
template<class T > |
T | saga::core::roundingError () |
|
template<> |
float | saga::core::roundingError () |
|
template<class T > |
T | saga::core::relativeErrorFactor () |
|
template<> |
float | saga::core::relativeErrorFactor () |
|
template<class T > |
bool | saga::core::equals (const T a, const T b, const T tolerance=roundingError< T >()) |
| returns if a equals b, taking possible rounding errors into account More...
|
|
template<class T > |
bool | saga::core::equalsRelative (const T a, const T b, const T factor=relativeErrorFactor< T >()) |
|
bool | saga::core::equalsByUlp (float a, float b, int maxUlpDiff) |
| We compare the difference in ULP's (spacing between floating-point numbers, aka ULP=1 means there exists no float between). More...
|
|
bool | saga::core::iszero (const double a, const double tolerance=ROUNDING_ERROR_double) |
| returns if a equals zero, taking rounding errors into account More...
|
|
bool | saga::core::iszero (const float a, const float tolerance=ROUNDING_ERROR_float) |
| returns if a equals zero, taking rounding errors into account More...
|
|
bool | saga::core::isnotzero (const float a, const float tolerance=ROUNDING_ERROR_float) |
| returns if a equals not zero, taking rounding errors into account More...
|
|
bool | saga::core::iszero (const std::int32_t a, const std::int32_t tolerance=0) |
| returns if a equals zero, taking rounding errors into account More...
|
|
bool | saga::core::iszero (const std::uint32_t a, const std::uint32_t tolerance=0) |
| returns if a equals zero, taking rounding errors into account More...
|
|
std::int32_t | saga::core::s32_min (std::int32_t a, std::int32_t b) |
|
std::int32_t | saga::core::s32_max (std::int32_t a, std::int32_t b) |
|
std::int32_t | saga::core::s32_clamp (std::int32_t value, std::int32_t low, std::int32_t high) |
|
std::uint32_t | saga::core::IR (float x) |
|
float | saga::core::FR (std::uint32_t x) |
| Floating-point representation of an integer value. More...
|
|
float | saga::core::FR (std::int32_t x) |
|
REALINLINE std::uint32_t | saga::core::if_c_a_else_b (const std::int32_t condition, const std::uint32_t a, const std::uint32_t b) |
| conditional set based on mask and arithmetic shift More...
|
|
REALINLINE std::uint16_t | saga::core::if_c_a_else_b (const std::int16_t condition, const std::uint16_t a, const std::uint16_t b) |
| conditional set based on mask and arithmetic shift More...
|
|
REALINLINE std::uint32_t | saga::core::if_c_a_else_0 (const std::int32_t condition, const std::uint32_t a) |
| conditional set based on mask and arithmetic shift More...
|
|
REALINLINE void | saga::core::setbit_cond (std::uint32_t &state, std::int32_t condition, std::uint32_t mask) |
|
float | saga::core::round_ (float x) |
|
REALINLINE void | saga::core::clearFPUException () |
|
REALINLINE float | saga::core::squareroot (const float f) |
|
REALINLINE double | saga::core::squareroot (const double f) |
|
REALINLINE std::int32_t | saga::core::squareroot (const std::int32_t f) |
|
REALINLINE double | saga::core::reciprocal_squareroot (const double x) |
|
REALINLINE float | saga::core::reciprocal_squareroot (const float f) |
|
REALINLINE std::int32_t | saga::core::reciprocal_squareroot (const std::int32_t x) |
|
REALINLINE float | saga::core::reciprocal (const float f) |
|
REALINLINE double | saga::core::reciprocal (const double f) |
|
REALINLINE float | saga::core::reciprocal_approxim (const float f) |
|
REALINLINE std::int32_t | saga::core::floor32 (float x) |
|
REALINLINE std::int32_t | saga::core::ceil32 (float x) |
|
REALINLINE std::int32_t | saga::core::round32 (float x) |
|
float | saga::core::float_max3 (const float a, const float b, const float c) |
|
float | saga::core::float_min3 (const float a, const float b, const float c) |
|
float | saga::core::fract (float x) |
|