Commit 565131e6 authored by David Reid's avatar David Reid

Add some internal functions for converting between radians and degrees.

These are in preparation for some spatialization functionality.
parent 525dd7cb
...@@ -7046,6 +7046,27 @@ static MA_INLINE float ma_log10f(float x) ...@@ -7046,6 +7046,27 @@ static MA_INLINE float ma_log10f(float x)
} }
static MA_INLINE double ma_degrees_to_radians(double degrees)
{
return degrees * 0.01745329252;
}
static MA_INLINE double ma_radians_to_degrees(double radians)
{
return radians * 57.295779512896;
}
static MA_INLINE float ma_degrees_to_radians_f(float degrees)
{
return degrees * 0.01745329252f;
}
static MA_INLINE float ma_radians_to_degrees_f(float radians)
{
return radians * 57.295779512896f;
}
/* /*
Return Values: Return Values:
0: Success 0: Success
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment