summary refs log tree commit diff
path: root/src/Math/Trig.hpp
blob: 00489a9566434351073e0111d158e0bb27102524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "Constants.hpp"

namespace Math {

template<typename T>
T radians(T degrees) {
    return degrees * PI / 180.0f;
}

template<typename T>
T degrees(T radians) {
    return radians * 180.0f / PI;
}

}