Browse Source

Remove degreesToRadians from drowaudio, now on juce

tags/2018-04-16
falkTX 8 years ago
parent
commit
84ea66459c
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      libs/drowaudio/source/dRowAudio/maths/dRowAudio_MathsUtilities.h

+ 0
- 14
libs/drowaudio/source/dRowAudio/maths/dRowAudio_MathsUtilities.h View File

@@ -401,20 +401,6 @@ inline FloatingPointType sincPi (const FloatingPointType x) noexcept
return static_cast<FloatingPointType> (std::sin (double_Pi * x) / (double_Pi * x));
}

//==============================================================================
/** Converts a number of degrees to radians. */
template<typename FloatingPointType>
inline FloatingPointType degreesToRadians (const FloatingPointType degrees) noexcept
{
return (degrees / 180.0) * double_Pi;
}

template<>
inline float degreesToRadians<float> (const float degrees) noexcept
{
return (degrees / 180.0f) * float_Pi;
}

/** Returns true if the argument is a power of 2.
This will return false if 0 is passed.
*/


Loading…
Cancel
Save