fx64c Type Constant Macros

Description

FX64C_ONE This is the number 1. It is equal to FX64C_CONST (1.0f).
FX64C_HALF This is the number 1/2. It is equal to FX64C_CONST (0.5.0f).
FX64C_E The value of e (Euler's constant)
FX64C_LOG2E The value of log2(e).
FX64C_LOG10E The value of log10(e).
FX64C_LN2 The value of ln(2).
FX64C_LN10 The value of ln(10).
FX64C_PI The value of π.
FX64C_TWOPI The value of 2π
FX64C_PI_2 The value of π/2.
FX64C_PI_4 The value of π/4.
FX64C_3PI_4 The value of 3π/4.
FX64C_SQRTPI The square root of π.
FX64C_1_PI The value of 1/π.
FX64C_2_PI The value of 2/π.
FX64C_2_SQRTPI The value of 2/sqrt(π).
FX64C_SQRT2 The square root of 2.
FX64C_SQRT1_2 The square root of 1/2.
FX64C_SQRT3 The square root of 3.
FX64C_SQRT1_3 The square root of 1/3.
FX64C_IVLN10 The value of 1/ln(10).
FX64C_LOG2_E The value of 1/log2(e).
FX64C_INVLN2 The value of 1/ln(2).
FX64C_1_360 This is the number 1/360.
FX64C_TWOPI_360 The value of 2π/360.
FX64C_360_TWOPI The value of 360/2π.
FX64C_65536_TWOPI The value of 65536/2π.
FX64C_65536_360 This is the number 65536/360.
FX64C_TWOPI_65536 The value of 2π/65536.
FX64C_360_65536 This is the number 360/65536.
FX64C_[1-99]_100 A value between 1/100 and 99/100.

Macro Definitions

These macros are defined in NitroSDK/include/nitro/fx/fx_const.h.

#define FX64C_ONE                        ((fx64c) 0x0000000100000000LL)    // 1.000000000
#define FX64C_HALF                       ((fx64c) 0x0000000080000000LL)    // 0.500000000
#define FX64C_E                          ((fx64c) 0x00000002b7e15163LL)    // 2.718281829
#define FX64C_LOG2E                      ((fx64c) 0x0000000171547653LL)    // 1.442695041
#define FX64C_LOG10E                     ((fx64c) 0x000000006f2dec55LL)    // 0.434294482
#define FX64C_LN2                        ((fx64c) 0x00000000b17217f8LL)    // 0.693147181
#define FX64C_LN10                       ((fx64c) 0x000000024d763777LL)    // 2.302585093
#define FX64C_PI                         ((fx64c) 0x00000003243f6a89LL)    // 3.141592654
#define FX64C_TWOPI                      ((fx64c) 0x00000006487ed511LL)    // 6.283185307
#define FX64C_PI_2                       ((fx64c) 0x00000001921fb544LL)    // 1.570796327
#define FX64C_PI_4                       ((fx64c) 0x00000000c90fdaa2LL)    // 0.785398163
#define FX64C_3PI_4                      ((fx64c) 0x000000025b2f8fe6LL)    // 2.356194490
#define FX64C_SQRTPI                     ((fx64c) 0x00000001c5bf891bLL)    // 1.772453851
#define FX64C_1_PI                       ((fx64c) 0x00000000517cc1b7LL)    // 0.318309886
#define FX64C_2_PI                       ((fx64c) 0x00000000a2f9836eLL)    // 0.636619772
#define FX64C_2_SQRTPI                   ((fx64c) 0x0000000120dd7504LL)    // 1.128379167
#define FX64C_SQRT2                      ((fx64c) 0x000000016a09e668LL)    // 1.414213562
#define FX64C_SQRT1_2                    ((fx64c) 0x00000000b504f334LL)    // 0.707106781
#define FX64C_SQRT3                      ((fx64c) 0x00000001bb67ae86LL)    // 1.732050808
#define FX64C_SQRT1_3                    ((fx64c) 0x0000000093cd3a2dLL)    // 0.577350269
#define FX64C_IVLN10                     ((fx64c) 0x000000006f2dec55LL)    // 0.434294482
#define FX64C_LOG2_E                     ((fx64c) 0x00000000b17217f8LL)    // 0.693147181
#define FX64C_INVLN2                     ((fx64c) 0x0000000171547653LL)    // 1.442695041
#define FX64C_1_360                      ((fx64c) 0x0000000000b60b61LL)    // 0.002777778
#define FX64C_TWOPI_360                  ((fx64c) 0x000000000477d1a9LL)    // 0.017453293
#define FX64C_360_TWOPI                  ((fx64c) 0x000000394bb834c8LL)    // 57.295779513
#define FX64C_65536_TWOPI                ((fx64c) 0x000028be60db9391LL)    // 10430.378350470
#define FX64C_65536_360                  ((fx64c) 0x000000b60b60b60bLL)    // 182.044444444
#define FX64C_TWOPI_65536                ((fx64c) 0x000000000006487fLL)    // 0.000095874
#define FX64C_360_65536                  ((fx64c) 0x0000000001680000LL)    // 0.005493164
.....

Revision History

02/25/2004 Initial version.