Files Class List
cyCore.h File Reference

Detailed Description

Core functions and macros.

Author
Cem Yuksel

Core functions and macros for math and other common operations

Functions

Common math function templates
template<typename T >
Max (T const &v1, T const &v2)
 
template<typename T >
Min (T const &v1, T const &v2)
 
template<typename T >
Max (T const &v1, T const &v2, T const &v3)
 
template<typename T >
Min (T const &v1, T const &v2, T const &v3)
 
template<typename T >
Clamp (T const &v, T minVal=T(0), T maxVal=T(1))
 
template<typename T >
ACosSafe (T const &v)
 
template<typename T >
ASinSafe (T const &v)
 
template<typename T >
Sqrt (T const &v)
 
template<typename T >
SqrtSafe (T const &v)
 
template<>
float Sqrt< float > (float const &v)
 
template<>
float SqrtSafe< float > (float const &v)
 
template<>
double Sqrt< double > (double const &v)
 
template<>
double SqrtSafe< double > (double const &v)
 
template<typename T >
Pi ()
 
template<typename T >
bool IsFinite (T const &v)
 
template<typename T >
void MemCopy (T *restrict dest, T const *restrict src, size_t count)
 
template<typename T , typename S >
void MemConvert (T *restrict dest, S const *restrict src, size_t count)
 
template<typename T >
void MemClear (T *dest, size_t count)
 
template<typename T >
void Swap (T &v1, T &v2)
 
template<typename T >
void SwapBytes (T &v1, T &v2)
 

Variables

static _cy_nullptr_t nullptr