Math/Angle: Add sine, cosine, tangent methods
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user