#include <numbers>
#include <cmath>
Go to the source code of this file.
|
| class | core::Radian |
| | Radian is an utility class that describes radian angles (0 to 2PI). It can be easily converted to Degree with conversion constructor. It can be used with trigonometric functions (Sin, Cos, Tan) More...
|
| |
| class | core::Degree |
| | Degree is an utility class that describes degree angles (0 to 360). It can be easily converted to Radian with conversion constructor. It can be used with trigonometric functions (Sin, Cos, Tan) More...
|
| |
|
|
constexpr Degree | core::operator* (float value, Degree angle) |
| |
| float | core::Sin (Radian angle) |
| | Sin is a function that calculates the sinus of a given angle. More...
|
| |
| float | core::Cos (Radian angle) |
| | Cos is a function that calculates the cosinus of a given angle. More...
|
| |
| float | core::Tan (Radian angle) |
| | Tan is a function that calculates the tangent of a given angle. More...
|
| |
| Radian | core::Asin (float ratio) |
| | Asin is a function that calculates the angle of a given ratio. More...
|
| |
| Radian | core::Acos (float ratio) |
| | Acos is a function that calculates the angle of a given ratio. More...
|
| |
| Radian | core::Atan (float ratio) |
| | Atan is a function that calculates the angle of a given ratio. More...
|
| |
| Radian | core::Atan2 (float y, float x) |
| | Atan2 is a function that calculates the angle of a given ratio between two parameters. More...
|
| |
◆ Acos()
| Radian core::Acos |
( |
float |
ratio | ) |
|
|
inline |
Acos is a function that calculates the angle of a given ratio.
- Parameters
-
| ratio | is the given ratio between the adjacent and hypothenuse |
- Returns
- the result of the acosinus function
◆ Asin()
| Radian core::Asin |
( |
float |
ratio | ) |
|
|
inline |
Asin is a function that calculates the angle of a given ratio.
- Parameters
-
| ratio | is the given ratio between the opponent and hypothenuse |
- Returns
- the result of the asinus function
◆ Atan()
| Radian core::Atan |
( |
float |
ratio | ) |
|
|
inline |
Atan is a function that calculates the angle of a given ratio.
- Parameters
-
| ratio | is the given ratio between the adjacent and hypothenuse |
- Returns
- the result of the atan function
◆ Atan2()
| Radian core::Atan2 |
( |
float |
y, |
|
|
float |
x |
|
) |
| |
|
inline |
Atan2 is a function that calculates the angle of a given ratio between two parameters.
- Parameters
-
| y | is the upper value of the ratio |
| x | is the lower value of the ratio |
- Returns
- the result of the atan function
◆ Cos()
| float core::Cos |
( |
Radian |
angle | ) |
|
|
inline |
Cos is a function that calculates the cosinus of a given angle.
- Parameters
-
- Returns
- the result of the cosinus of angle
◆ Sin()
| float core::Sin |
( |
Radian |
angle | ) |
|
|
inline |
Sin is a function that calculates the sinus of a given angle.
- Parameters
-
- Returns
- the result of the sinus of angle
◆ Tan()
| float core::Tan |
( |
Radian |
angle | ) |
|
|
inline |
Tan is a function that calculates the tangent of a given angle.
- Parameters
-
- Returns
- the result of the tangent of angle