gwnavruntime/math/fastmath.h File Reference

fastmath.h File Reference
#include "gwnavruntime/base/types.h"
#include <math.h>

Namespaces

 Kaim
 The Autodesk Navigation namespace.
 

Functions

KyFloat32 Kaim::Fsel (KyFloat32 a, KyFloat32 x, KyFloat32 y)
 x if a>=0.0f, y if a<0.0f More...
 
KyInt32 Kaim::Isel (KyInt32 a, KyInt32 x, KyInt32 y)
 If a is greater than 0, returns x. More...
 
KyInt64 Kaim::Lsel (KyInt64 a, KyInt64 x, KyInt64 y)
 If a is greater than 0, returns x. More...
 
KyInt64 Kaim::Lsign (KyInt64 x)
 return -1 if x<0, 0 if x==0, 1 if x>0 More...
 
KyFloat32 Kaim::RadFromDeg (KyFloat32 degrees)
 Converts degrees into radians. More...
 
KyFloat32 Kaim::DegFromRad (KyFloat32 radians)
 Converts radians into degrees. More...
 

Variables

static const KyFloat32 Kaim::KY_PI = 3.14159265f
 Stores the value of pi. More...
 
static const KyFloat32 Kaim::KY_2_PI = 2.0f * KY_PI
 Stores the value of 2*pi. More...
 
static const KyFloat32 Kaim::KY_PI_DIVIDED_BY_180 = KY_PI / 180.0f
 Stores the value of KY_PI divided by 180. More...
 
static const KyFloat32 Kaim::KY_180_DIVIDED_BY_PI = 180.0f / KY_PI
 Stores the value of 180 divided by KY_PI. More...
 

Go to the source code of this file.