SA_Maths
Sapphire Suite's C++ Maths Library
Loading...
Searching...
No Matches
Tan.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire development team. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_MATHS_TAN_GUARD
6#define SAPPHIRE_MATHS_TAN_GUARD
7
9
20namespace SA
21{
22 namespace Maths
23 {
31 template <typename T>
32 constexpr T Tan(Rad<T> _in) noexcept
33 {
34 return std::tan(_in.Handle());
35 }
36
44 template <typename T>
45 constexpr Rad<T> ATan(T _in) noexcept
46 {
47 return std::atan(_in);
48 }
49
50
59 template <typename T>
60 constexpr Rad<T> ATan2(T _y, T _x) noexcept
61 {
62 return std::atan2(_y, _x);
63 }
64 }
65}
66
75#endif // GUARD
Radian type implementation.
constexpr Rad< T > ATan2(T _y, T _x) noexcept
Compute the arc-tangent 2 of _y / _x.
Definition Tan.hpp:60
constexpr T Tan(Rad< T > _in) noexcept
Compute the tangent of the input.
Definition Tan.hpp:32
constexpr Rad< T > ATan(T _in) noexcept
Compute the arc-tangent of the input.
Definition Tan.hpp:45
Maths Radian type.
Definition Radian.hpp:36