GPR5100 - Rollback
Loading...
Searching...
No Matches
Classes | Functions
angle.h File Reference
#include <numbers>
#include <cmath>
Include dependency graph for angle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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...
 

Functions

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...
 

Function Documentation

◆ Acos()

Radian core::Acos ( float  ratio)
inline

Acos is a function that calculates the angle of a given ratio.

Parameters
ratiois the given ratio between the adjacent and hypothenuse
Returns
the result of the acosinus function
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Asin()

Radian core::Asin ( float  ratio)
inline

Asin is a function that calculates the angle of a given ratio.

Parameters
ratiois the given ratio between the opponent and hypothenuse
Returns
the result of the asinus function
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Atan()

Radian core::Atan ( float  ratio)
inline

Atan is a function that calculates the angle of a given ratio.

Parameters
ratiois the given ratio between the adjacent and hypothenuse
Returns
the result of the atan function
Here is the call graph for this function:
Here is the caller graph for this 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
yis the upper value of the ratio
xis the lower value of the ratio
Returns
the result of the atan function
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cos()

float core::Cos ( Radian  angle)
inline

Cos is a function that calculates the cosinus of a given angle.

Parameters
angleis the given angle
Returns
the result of the cosinus of angle
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sin()

float core::Sin ( Radian  angle)
inline

Sin is a function that calculates the sinus of a given angle.

Parameters
angleis the given angle
Returns
the result of the sinus of angle
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tan()

float core::Tan ( Radian  angle)
inline

Tan is a function that calculates the tangent of a given angle.

Parameters
angleis the given angle
Returns
the result of the tangent of angle
Here is the call graph for this function:
Here is the caller graph for this function: