LightWrap++
AC++wrapperfortheLightWave3DSDK
math.h File Reference
#include <lwpp/debug.h>
+ Include dependency graph for math.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  lwpp
 contain Carbon specific code for the OSX XCode version platform_carbon.cpp lwpp

Macros

#define _doublemagic   double (6755399441055744.0)
#define _doublemagicroundeps   (.5-1.4e-11)
#define FAST_INT
#define FOURPI   (4.0 * PI)
#define HALFPI   (0.5 * PI)
#define PI   (3.14159265358979324)
#define PI_f   (3.14159265358979324f)
#define TWOPI   (2.0 * PI)

Functions

template<class Type >
int lwpp::Ceil (const Type x)
template<class Type >
Type lwpp::Clamp (const Type value, const Type min, const Type max)
 Clamp a value between min and max.
template<class Type >
Type lwpp::Degrees (const Type rad)
 Radians to degree conversion.
int lwpp::Double2Int (double val)
 Fast double to integer conversion.
template<class Type >
int lwpp::Floor (const Type x)
template<class Type >
bool lwpp::inRange (const Type x, const Type min, const Type max)
 return true if the value is within the range, including the bounds
template<class T >
lwpp::Lerp (const double f, const T a, const T b)
template<class Type >
Type lwpp::log2 (const Type a)
template<class Type >
Type lwpp::Max (Type a, Type b)
 Maximum.
template<class Type >
Type lwpp::Max (const Type v[3])
template<class Type >
Type lwpp::Min (const Type a, const Type b)
 Minimum.
template<class Type >
Type lwpp::Min (const Type v[3])
template<class Type >
int lwpp::Mod (const Type a, const Type b)
template<class Type >
Type lwpp::Normalize (const Type x, const Type min, const Type max)
int lwpp::Pow2 (const int n)
template<class Type >
Type lwpp::Radians (const Type deg)
 Degrees to radians conversion.
template<class Type >
Type lwpp::Range (const Type x, const Type min, const Type max)
template<class Type >
int lwpp::Round (const double r)
int lwpp::Round2Int (double val)
 Fast rounding of a double to an integer.
template<class T >
lwpp::SignOf (const T a)
template<class Type >
Type lwpp::SmoothStep (const Type value, const Type min, const Type max)
template<class Type >
Type lwpp::SmoothStep (const Type value)
template<class Type >
Type lwpp::Sqr (const Type a)
 Minimum.
template<class T >
void lwpp::Swap (T &a, T &b)
void lwpp::xyztohp (const double x, const double y, const double z, double &h, double &p)
double lwpp::xztoh (const double x, const double z)

Macro Definition Documentation

#define _doublemagic   double (6755399441055744.0)
#define _doublemagicroundeps   (.5-1.4e-11)
#define FAST_INT
#define FOURPI   (4.0 * PI)
#define HALFPI   (0.5 * PI)
#define PI   (3.14159265358979324)
Version:
Id:
infinimapplugin.h 40 2005-12-29 01:14:28Z mwolf
#define PI_f   (3.14159265358979324f)
#define TWOPI   (2.0 * PI)