Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Functions | Variables
3D_TRIG.C File Reference
#include "3D_TRIG.H"
#include "FILE.H"

Macros

#define M_PI   (3.14159265358979323846)
 
#define M_PI_2   (1.57079632679489661923)
 

Functions

T_void IMathPower2Init (T_void)
 
T_void ISetupViewTable (T_void)
 
T_word16 MathArcTangent (T_sword32 y, T_sword32 x)
 
T_word16 MathArcTangent32 (T_sword32 y, T_sword32 x)
 
T_word16 MathArcTangentOld (T_sword16 y, T_sword16 x)
 
T_sword32 MathCosine (T_word16 angle)
 
T_void MathFinish (T_void)
 
T_void MathInitialize (T_word32 screenWidth)
 
T_void MathInitializeInvDistTable (T_word32 screenWidth)
 
T_void MathInitializeOld (T_word32 screenWidth)
 
T_sword32 MathInvCosine (T_word16 angle)
 
T_sword32 MathSine (T_word16 angle)
 
T_sword32 MathTangent (T_word16 angle)
 
T_sword16 MathXTimesCosAngle (T_sword16 x, T_word16 angle)
 
T_sword16 MathXTimesSinAngle (T_sword16 x, T_word16 angle)
 

Variables

T_word16 G_arcTanTable [256][256]
 
T_sword32 G_cosTable [MATH_MAX_ANGLE]
 
T_sword32 G_invCosTable [MATH_MAX_ANGLE]
 
T_sword32 G_invDistTable [MATH_MAX_DISTANCE]
 
T_byte8 G_power2table [257]
 
T_sword32 G_sinTable [MATH_MAX_ANGLE]
 
T_sword32 G_tanTable [MATH_MAX_ANGLE]
 
T_byte8 G_translucentTable [256][256]
 
T_sword32 G_viewTanTable [MAX_VIEW3D_WIDTH]