Go to the source code of this file.
|
template<class T > |
ID_INLINE int | MaxIndex (T x, T y) |
|
template<class T > |
ID_INLINE int | MinIndex (T x, T y) |
|
template<class T > |
ID_INLINE T | Max3 (T x, T y, T z) |
|
template<class T > |
ID_INLINE T | Min3 (T x, T y, T z) |
|
template<class T > |
ID_INLINE int | Max3Index (T x, T y, T z) |
|
template<class T > |
ID_INLINE int | Min3Index (T x, T y, T z) |
|
template<class T > |
ID_INLINE T | Sign (T f) |
|
template<class T > |
ID_INLINE T | Square (T x) |
|
template<class T > |
ID_INLINE T | Cube (T x) |
|
#define BYTE2ANGLE |
( |
|
x | ) |
( (x) * ( 360.0f / 256.0f ) ) |
#define FLOAT_IS_DENORMAL |
( |
|
x | ) |
|
Value:(((*(
const unsigned long *)&
x) & 0x7f800000) == 0x00000000 && \
((*(
const unsigned long *)&
x) & 0x007fffff) != 0x00000000 )
Definition at line 77 of file Math.h.
#define FLOAT_IS_IND |
( |
|
x | ) |
((*(const unsigned long *)&x) == 0xffc00000) |
#define FLOAT_IS_INF |
( |
|
x | ) |
(((*(const unsigned long *)&x) & 0x7fffffff) == 0x7f800000) |
#define FLOAT_IS_NAN |
( |
|
x | ) |
(((*(const unsigned long *)&x) & 0x7f800000) == 0x7f800000) |
#define FLOATNOTZERO |
( |
|
f | ) |
((*(const unsigned long *)&(f)) & ~(1<<31) ) |
#define FLOATSIGNBITNOTSET |
( |
|
f | ) |
((~(*(const unsigned long *)&(f))) >> 31) |
#define FLOATSIGNBITSET |
( |
|
f | ) |
((*(const unsigned long *)&(f)) >> 31) |
#define IEEE_DBL_EXPONENT_BIAS 1023 |
#define IEEE_DBL_EXPONENT_BITS 11 |
#define IEEE_DBL_MANTISSA_BITS 52 |
#define IEEE_DBL_SIGN_BIT 63 |
#define IEEE_DBLE_EXPONENT_BIAS 0 |
#define IEEE_DBLE_EXPONENT_BITS 15 |
#define IEEE_DBLE_MANTISSA_BITS 63 |
#define IEEE_DBLE_SIGN_BIT 79 |
#define IEEE_FLT_EXPONENT_BIAS 127 |
#define IEEE_FLT_EXPONENT_BITS 8 |
#define IEEE_FLT_MANTISSA_BITS 23 |
#define IEEE_FLT_SIGN_BIT 31 |
#define INTSIGNBITNOTSET |
( |
|
i | ) |
((~((const unsigned long)(i))) >> 31) |
#define INTSIGNBITSET |
( |
|
i | ) |
(((const unsigned long)(i)) >> 31) |
#define SHORT2ANGLE |
( |
|
x | ) |
( (x) * ( 360.0f / 65536.0f ) ) |
template<class T >
ID_INLINE T Max3 |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z |
|
) |
| |
template<class T >
ID_INLINE int Max3Index |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z |
|
) |
| |
template<class T >
ID_INLINE int MaxIndex |
( |
T |
x, |
|
|
T |
y |
|
) |
| |
template<class T >
ID_INLINE T Min3 |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z |
|
) |
| |
template<class T >
ID_INLINE int Min3Index |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z |
|
) |
| |
template<class T >
ID_INLINE int MinIndex |
( |
T |
x, |
|
|
T |
y |
|
) |
| |
template<class T >
ID_INLINE T Square |
( |
T |
x | ) |
|