ad_physics
Namespaces | Functions | Variables
AngleOperation.hpp File Reference
#include <cmath>
#include "ad/physics/Types.hpp"
Include dependency graph for AngleOperation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ad
 namespace ad
 
 ad::physics
 namespace physics
 

Functions

ad::physics::Angle operator* (ad::physics::AngularVelocity const &v, ad::physics::Duration const &t)
 Arithmetic physics operation s = v * t. More...
 
ad::physics::Angle operator* (ad::physics::Duration const &t, ad::physics::AngularVelocity const &v)
 Arithmetic physics operation s = t * v. More...
 
ad::physics::AngularVelocity operator* (ad::physics::AngularAcceleration const &a, ad::physics::Duration const &t)
 Arithmetic physics operation v = a * t. More...
 
ad::physics::AngularVelocity operator* (ad::physics::Duration const &t, ad::physics::AngularAcceleration const &a)
 Arithmetic physics operation v = t * a. More...
 
static const Angle ad::physics::c2PI (2. *M_PI)
 constant 2*PI
 
Angle ad::physics::normalizeAngle (Angle const &angle)
 
Angle ad::physics::normalizeAngleSigned (Angle const &angle)
 
double std::sin (ad::physics::Angle const &angle)
 
double std::cos (ad::physics::Angle const &angle)
 
double std::tan (ad::physics::Angle const &angle)
 

Variables

static const Angle ad::physics::cPI (M_PI)
 constant PI
 
static const Angle ad::physics::cPI_2 (M_PI_2)
 constant PI/2
 

Function Documentation

◆ cos()

double std::cos ( ad::physics::Angle const &  angle)
inline
Returns
cosine of the angle
Note
throws a std::out_of_range exception if the operand is not valid

◆ operator*() [1/4]

Arithmetic physics operation v = a * t.

Parameters
[in]aangular acceleration value
[in]tduration value
Returns
v = a * t as angular velocity value
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [2/4]

ad::physics::Angle operator* ( ad::physics::AngularVelocity const &  v,
ad::physics::Duration const &  t 
)
inline

Arithmetic physics operation s = v * t.

Parameters
[in]vangular speed value
[in]tduration value
Returns
s = v * t as angle value
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [3/4]

Arithmetic physics operation v = t * a.

Parameters
[in]tduration value
[in]aangular acceleration value
Returns
v = t * a as angular velocity value
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [4/4]

ad::physics::Angle operator* ( ad::physics::Duration const &  t,
ad::physics::AngularVelocity const &  v 
)
inline

Arithmetic physics operation s = t * v.

Parameters
[in]tduration value
[in]vangular speed value
Returns
s = v * t as angle value
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ sin()

double std::sin ( ad::physics::Angle const &  angle)
inline
Returns
sine of the angle
Note
throws a std::out_of_range exception if the operand is not valid

◆ tan()

double std::tan ( ad::physics::Angle const &  angle)
inline
Returns
Tangent of the angle
Note
throws a std::out_of_range exception if the operand is not valid