Skip to content

Commit

Permalink
Removed unecessary rounding classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysalwen committed Jun 5, 2011
1 parent 55e9141 commit e5e9b32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 82 deletions.
13 changes: 6 additions & 7 deletions QuickTrig.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 1999-2003 Robin Davies.
// Placed into the public domain.
// All uses permitted without attribution.

#include "SfxxRound.h"

#define PI 3.141592653589793238462643383279502

struct TSinCos {
float msin, mcos;
Expand Down Expand Up @@ -33,11 +33,10 @@ class CQuickTrigConsts {
protected:
static void Initialize();

};

};

class CQuickTrig
: public CImplementsRounding , public CQuickTrigConsts
: public CQuickTrigConsts
{
public:

Expand All @@ -49,7 +48,7 @@ class CQuickTrig
};
inline double QuickSin(double dAngle) const // Returns sin with 20 bits of precision.
{
return QuickSinQ(Round(dAngle*(kMsTableSize*kLsTableSize/(2*PI))) );
return QuickSinQ((int)(dAngle*(kMsTableSize*kLsTableSize/(2*PI))) );
}
inline double QuickCosQ(int nIndex) const {
// based on the identity cos(u+v) = cosu cosv + sinu sinv
Expand All @@ -60,7 +59,7 @@ class CQuickTrig

inline double QuickCos(double dAngle) const // Returns cos with 20 bits of precision.
{
return QuickCosQ(Round(dAngle*(kMsTableSize*kLsTableSize/(2*PI))) );
return QuickCosQ((int)(dAngle*(kMsTableSize*kLsTableSize/(2*PI))) );
}


Expand Down
6 changes: 0 additions & 6 deletions SfxxInline.h

This file was deleted.

69 changes: 0 additions & 69 deletions SfxxRound.h

This file was deleted.

0 comments on commit e5e9b32

Please sign in to comment.