apibasemath.h File Reference

Classes

class  LIMIT< T >
 
class  LIMIT< Int64 >
 
class  LIMIT< UInt64 >
 
class  LIMIT< Int32 >
 
class  LIMIT< UInt32 >
 
class  LIMIT< Int16 >
 
class  LIMIT< UInt16 >
 
class  LIMIT< Char >
 
class  LIMIT< UChar >
 
class  LIMIT< Float32 >
 
class  LIMIT< Float64 >
 

Macros

#define SIZEOF(...)
 

Functions

Float32 Clamp01 (Float32 a)
 
Float64 Clamp01 (Float64 a)
 
Float32 Sin (Float32 val)
 
Float64 Sin (Float64 val)
 
Float32 Cos (Float32 val)
 
Float64 Cos (Float64 val)
 
Float32 Tan (Float32 val)
 
Float64 Tan (Float64 val)
 
Float32 ATan (Float32 val)
 
Float64 ATan (Float64 val)
 
Float32 ATan2 (Float32 valY, Float32 valX)
 
Float64 ATan2 (Float64 valY, Float64 valX)
 
Float32 Exp (Float32 val)
 
Float64 Exp (Float64 val)
 
Float32 Ln (Float32 val)
 
Float64 Ln (Float64 val)
 
Float32 Log10 (Float32 val)
 
Float64 Log10 (Float64 val)
 
Float32 Log2 (Float32 val)
 
Float64 Log2 (Float64 val)
 
Float32 Sqrt (Float32 val)
 
Float64 Sqrt (Float64 val)
 
Float32 Floor (Float32 val)
 
Float64 Floor (Float64 val)
 
Float32 Ceil (Float32 val)
 
Float64 Ceil (Float64 val)
 
Float32 Modf (Float32 val, Float32 *intpart)
 
Float64 Modf (Float64 val, Float64 *intpart)
 
Float32 Pow (Float32 v1, Float32 v2)
 
Float64 Pow (Float64 v1, Float64 v2)
 
Float32 Sinh (Float32 val)
 
Float64 Sinh (Float64 val)
 
Float32 Cosh (Float32 val)
 
Float64 Cosh (Float64 val)
 
Float32 Tanh (Float32 val)
 
Float64 Tanh (Float64 val)
 
Float32 FMod (Float32 v1, Float32 v2)
 
Float64 FMod (Float64 v1, Float64 v2)
 
Float32 Abs (Float32 val)
 
Float64 Abs (Float64 val)
 
Float32 Inverse (Float32 f)
 
Float64 Inverse (Float64 f)
 
Float32 Round (Float32 f)
 
Float64 Round (Float64 f)
 
template<typename X >
Abs (X f)
 
template<typename X >
Min (X a, X b)
 
template<typename X >
Max (X a, X b)
 
template<typename X >
void Swap (X &a, X &b)
 
template<typename X >
ClampValue (X value, X lowerLimit, X upperLimit)
 
Float32 Blend (Float32 value1, Float32 value2, Float32 blendValue)
 
Float64 Blend (Float64 value1, Float64 value2, Float64 blendValue)
 
template<typename X >
Sqr (X a, X b)
 
template<typename X >
Sqr (X a)
 
Float32 ASin (Float32 val)
 
Float64 ASin (Float64 val)
 
Float32 ACos (Float32 val)
 
Float64 ACos (Float64 val)
 
Float32 DegToRad (Float32 r)
 
Float64 DegToRad (Float64 r)
 
Float32 RadToDeg (Float32 r)
 
Float64 RadToDeg (Float64 r)
 
void SinCos (Float32 r, Float32 &sn, Float32 &cs)
 
void SinCos (Float64 r, Float64 &sn, Float64 &cs)
 
Int32 SAFEINT32 (Float32 x)
 
Int32 SAFEINT32 (Float64 x)
 
Int64 SAFEINT64 (Float32 x)
 
Int64 SAFEINT64 (Float64 x)
 
Int SAFEINT (Float64 x)
 
Int SAFEINT (Float32 x)
 
template<typename T >
void SetMax (T &a, const T &b)
 
template<typename T >
void SetMin (T &a, const T &b)
 

Variables

static constexpr Float32 MINVALUE_FLOAT32
 
static constexpr Float32 MAXVALUE_FLOAT32
 
static constexpr Float64 MINVALUE_FLOAT64
 
static constexpr Float64 MAXVALUE_FLOAT64
 
static constexpr Float32 MINVALUE_INT32_FLOAT32
 
static constexpr Float32 MAXVALUE_INT32_FLOAT32
 
static constexpr Float64 MINVALUE_INT64_FLOAT64
 
static constexpr Float64 MAXVALUE_INT64_FLOAT64
 
static constexpr Float32 MINRANGE_FLOAT32
 
static constexpr Float32 MAXRANGE_FLOAT32
 
static constexpr Float64 MINRANGE_FLOAT64
 
static constexpr Float64 MAXRANGE_FLOAT64
 
static constexpr Float MINVALUE_FLOAT
 
static constexpr Float MAXVALUE_FLOAT
 
static constexpr Float MINRANGE_FLOAT
 
static constexpr Float MAXRANGE_FLOAT
 
static constexpr Int NOTOK
 
static constexpr Float64 PI
 
static constexpr Float64 PI_INV
 
static constexpr Float64 PI2
 
static constexpr Float64 PI2_INV
 
static constexpr Float64 PI05
 
static constexpr Float64 PI05_INV
 
static constexpr Float64 PI15
 
static constexpr Float64 PI15_INV