Commit 6d9fcc64 authored by stoutjesdijk's avatar stoutjesdijk 🎧
Browse files

using constants in deg2rad / rad2deg

parent 2c6fdebf
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@

*******************************************************************************************************/

#include "ivas_cnst.h"
#include <assert.h>
#include <stdint.h>
#include "options.h"
@@ -257,7 +258,7 @@ void Euler2Quat(
 *------------------------------------------------------------------------*/
float deg2rad( float degrees )
{
    return PI2 * degrees / 360.0f;
    return PI_OVER_180 * degrees;
}

/*-------------------------------------------------------------------------
@@ -267,7 +268,7 @@ float deg2rad( float degrees )
 *------------------------------------------------------------------------*/
float rad2deg( float radians )
{
    return 360.0f * radians / PI2;
    return _180_OVER_PI * radians;
}

#endif