blob: 20516e3b69d8e13651ddcc93bb6af51c44e55a2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// -- internal --
// public
#include "rodeo/math.h"
// -- system --
#include "math.h"
float
rodeo_math_radians_to_turns(float radians)
{
return (radians / mrodeo_math_pi) / 2.0f;
}
float
rodeo_math_turns_to_radians(float turns)
{
return turns * mrodeo_math_pi * 2.0f;
}
|