DefinesMath.cpp File Reference

#include <common/DefinesMath.h>
#include <common/Defines.h>
#include <math.h>

Go to the source code of this file.

Functions

static void calculateFast ()
float getFastSin (float angle)
float getFastCos (float angle)

Variables

static float fastSin [628]
static float fastCos [628]
static bool calculatedFast = false


Function Documentation

static void calculateFast (  )  [static]

Definition at line 29 of file DefinesMath.cpp.

References calculatedFast, fastCos, and fastSin.

Referenced by getFastCos(), and getFastSin().

float getFastCos ( float  angle  ) 

Definition at line 50 of file DefinesMath.cpp.

Referenced by MissileMesh::draw(), TargetRendererImpl::drawShield(), ParticleEmitter::emitDebris(), ParticleEmitter::emitExplosionRing(), ExplosionNukeRendererEntry::ExplosionNukeRendererEntry(), TargetCamera::moveCamera(), and ParticleRendererMushroom::renderParticle().

float getFastSin ( float  angle  ) 

Definition at line 40 of file DefinesMath.cpp.

Referenced by MissileMesh::draw(), TargetRendererImpl::drawShield(), ParticleEmitter::emitDebris(), ParticleEmitter::emitExplosionRing(), ExplosionNukeRendererEntry::ExplosionNukeRendererEntry(), TargetCamera::moveCamera(), and ParticleRendererMushroom::renderParticle().


Variable Documentation

bool calculatedFast = false [static]

Definition at line 27 of file DefinesMath.cpp.

Referenced by calculateFast(), getFastCos(), and getFastSin().

float fastCos[628] [static]

Definition at line 26 of file DefinesMath.cpp.

Referenced by calculateFast(), and getFastCos().

float fastSin[628] [static]

Definition at line 25 of file DefinesMath.cpp.

Referenced by calculateFast(), and getFastSin().


Generated on Mon Feb 16 15:14:57 2009 for Scorched3D by  doxygen 1.5.3