Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2011, 4:46:26 AM (14 years ago)
Author:
rgrieder
Message:

Removed double precision versions of the mathematical constants and added math::twoPi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib2/src/orxonox/graphics/BlinkingBillboard.cc

    r8332 r8333  
    8181            // Wrap around to avoid loosing floating point precision
    8282            this->time_ = std::fmod(this->time_ + dt, 1.0f / this->frequency_);
    83             float value = sin((2.0f * math::pi * this->time_ + this->phase_.valueRadians()) * this->frequency_);
     83            float value = sin((math::twoPi * this->time_ + this->phase_.valueRadians()) * this->frequency_);
    8484            if (this->bQuadratic_)
    8585                this->setScale(this->amplitude_ * square(value));
Note: See TracChangeset for help on using the changeset viewer.