summary refs log tree commit diff
path: root/src/Math/Trig.hpp
blob: 2a415f503b01aba6d4824018c9ff6673dc5f5810 (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;
}

}