Math/Angle: Add sine, cosine, tangent methods

This commit is contained in:
Jérôme Leclercq
2018-09-05 15:14:31 +02:00
parent 3cc70daf3e
commit 9e0b61f30d
3 changed files with 125 additions and 6 deletions

View File

@@ -11,6 +11,7 @@
#include <Nazara/Math/Algorithm.hpp>
#include <Nazara/Math/Enums.hpp>
#include <type_traits>
#include <utility>
namespace Nz
{
@@ -28,6 +29,11 @@ namespace Nz
Angle(const Angle&) = default;
~Angle() = default;
T GetCos() const;
T GetSin() const;
std::pair<T, T> GetSinCos() const;
T GetTan() const;
Angle& MakeZero();
void Normalize();