Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

NNCMath Class Reference

#include <nncmath.h>

List of all members.

Static Public Methods

void MathInit ()
double Sin (degree d)
double Cos (degree d)
double Tan (degree d)
double Sin (radian r)
double Cos (radian r)
double Tan (radian r)
radian ArcSin (double d)
radian ArcCos (double d)
radian ArcTan (double d)
double SRoot (double d)

Static Public Attributes

const double PI = 3.14159265358979323846
const double TWO_PI = (2 * PI)
const double PI_OVER_TWO = (PI / 2)

Static Private Attributes

double sinTable [SIN_TABLE_SIZE]
double cosTable [COS_TABLE_SIZE]
double tanTable [TAN_TABLE_SIZE]
double arcSinTable [ARC_SIN_TABLE_SIZE]
double arcCosTable [ARC_COS_TABLE_SIZE]
double arcTanTable [ARC_TAN_TABLE_SIZE]
double sRootTable [ROOT_TABLE_SIZE]


Member Function Documentation

radian NNCMath::ArcCos double    d [static]
 

Definition at line 164 of file nncmath.cpp.

References ARC_COS_DEFAULT_VALUE, arcCosTable, MULTIPLIER, and _radian::value.

radian NNCMath::ArcSin double    d [static]
 

Definition at line 147 of file nncmath.cpp.

References ARC_SIN_DEFAULT_VALUE, arcSinTable, MULTIPLIER, TWO_PI, and _radian::value.

radian NNCMath::ArcTan double    d [static]
 

Definition at line 178 of file nncmath.cpp.

References ARC_TAN_DEFAULT_VALUE, arcTanTable, MULTIPLIER, PI_OVER_TWO, and _radian::value.

Referenced by MainChar::setLook().

double NNCMath::Cos radian    r [static]
 

Definition at line 83 of file nncmath.cpp.

References COS_DEFAULT_VALUE, COS_TABLE_SIZE, cosTable, MULTIPLIER, TWO_PI, and _radian::value.

double NNCMath::Cos degree    d [static]
 

Definition at line 77 of file nncmath.cpp.

References PI, _degree::value, and _radian::value.

Referenced by MainChar::FireWeapon(), UFO::think(), and BearSpawnPoint::think().

void NNCMath::MathInit   [static]
 

Definition at line 20 of file nncmath.cpp.

References ARC_COS_DEFAULT_VALUE, ARC_COS_TABLE_SIZE, ARC_SIN_DEFAULT_VALUE, ARC_SIN_TABLE_SIZE, ARC_TAN_DEFAULT_VALUE, ARC_TAN_TABLE_SIZE, arcCosTable, arcSinTable, arcTanTable, COS_DEFAULT_VALUE, COS_TABLE_SIZE, cosTable, ROOT_DEFAULT_VALUE, ROOT_TABLE_SIZE, SIN_DEFAULT_VALUE, SIN_TABLE_SIZE, sinTable, sRootTable, TAN_DEFAULT_VALUE, TAN_TABLE_SIZE, and tanTable.

Referenced by Application::Application().

double NNCMath::Sin radian    r [static]
 

Definition at line 54 of file nncmath.cpp.

References MULTIPLIER, SIN_DEFAULT_VALUE, SIN_TABLE_SIZE, sinTable, TWO_PI, and _radian::value.

double NNCMath::Sin degree    d [static]
 

Definition at line 48 of file nncmath.cpp.

References PI, _degree::value, and _radian::value.

Referenced by MainChar::FireWeapon(), UFO::think(), and BearSpawnPoint::think().

double NNCMath::SRoot double    d [static]
 

Definition at line 197 of file nncmath.cpp.

Referenced by Crosshair::think().

double NNCMath::Tan radian    r [static]
 

Definition at line 117 of file nncmath.cpp.

References MULTIPLIER, PI_OVER_TWO, TAN_DEFAULT_VALUE, TAN_TABLE_SIZE, tanTable, TWO_PI, and _radian::value.

double NNCMath::Tan degree    d [static]
 

Definition at line 111 of file nncmath.cpp.

References PI, _degree::value, and _radian::value.


Member Data Documentation

double NNCMath::arcCosTable [static, private]
 

Definition at line 12 of file nncmath.cpp.

Referenced by ArcCos(), and MathInit().

double NNCMath::arcSinTable [static, private]
 

Definition at line 11 of file nncmath.cpp.

Referenced by ArcSin(), and MathInit().

double NNCMath::arcTanTable [static, private]
 

Definition at line 13 of file nncmath.cpp.

Referenced by ArcTan(), and MathInit().

double NNCMath::cosTable [static, private]
 

Definition at line 9 of file nncmath.cpp.

Referenced by Cos(), and MathInit().

const double NNCMath::PI = 3.14159265358979323846 [static]
 

Definition at line 15 of file nncmath.cpp.

Referenced by Cos(), MainChar::setLook(), Bear::setWalk(), Sin(), Tan(), and BearSpawnPoint::think().

const double NNCMath::PI_OVER_TWO = (PI / 2) [static]
 

Definition at line 17 of file nncmath.cpp.

Referenced by ArcTan(), and Tan().

double NNCMath::sinTable [static, private]
 

Definition at line 8 of file nncmath.cpp.

Referenced by MathInit(), and Sin().

double NNCMath::sRootTable [static, private]
 

Definition at line 14 of file nncmath.cpp.

Referenced by MathInit().

double NNCMath::tanTable [static, private]
 

Definition at line 10 of file nncmath.cpp.

Referenced by MathInit(), and Tan().

const double NNCMath::TWO_PI = (2 * PI) [static]
 

Definition at line 16 of file nncmath.cpp.

Referenced by ArcSin(), Cos(), MainChar::FireWeapon(), Sin(), and Tan().


The documentation for this class was generated from the following files:
Generated on Sun Dec 8 12:02:22 2002 for nnc by doxygen1.3-rc1