FX32_ONE | This is the number 1. It is equal to FX32_CONST (1.0f). |
FX32_HALF | This is the number 1/2. It is equal to FX32_CONST (0.5.0f). |
FX32_SQRT2 | The square root of 2. |
FX32_SQRT1_2 | The square root of 1/2. |
FX32_SQRT3 | The square root of 3. |
FX32_SQRT1_3 | The square root of 1/3. |
FX32_SIN[0-359] | The sine of an angle between 0 and 359 degrees. |
FX32_COS[0-359] | The cosine of an angle between 0 and 359 degrees. |
These macros are defined in NitroSDK/include/nitro/fx/fx_const.h
.
#define FX32_ONE ((fx32) 0x00001000L) // 1.000 #define FX32_HALF ((fx32) 0x00000800L) // 0.500 #define FX32_SQRT2 ((fx32) 0x000016a1L) // 1.414 #define FX32_SQRT1_2 ((fx32) 0x00000b50L) // 0.707 #define FX32_SQRT3 ((fx32) 0x00001bb6L) // 1.732 #define FX32_SQRT1_3 ((fx32) 0x0000093dL) // 0.577 .....
02/25/2004 Initial version.