ad_physics
Functions
RatioOperation.hpp File Reference
#include "ad/physics/Types.hpp"
Include dependency graph for RatioOperation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ad::physics::Acceleration operator* (ad::physics::Acceleration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Acceleration operator* (ad::physics::RatioValue const &r, ad::physics::Acceleration const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Acceleration operator/ (ad::physics::Acceleration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::Angle operator* (ad::physics::Angle const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Angle operator* (ad::physics::RatioValue const &r, ad::physics::Angle const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Angle operator/ (ad::physics::Angle const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::AngularAcceleration operator* (ad::physics::AngularAcceleration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::AngularAcceleration operator* (ad::physics::RatioValue const &r, ad::physics::AngularAcceleration const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::AngularAcceleration operator/ (ad::physics::AngularAcceleration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::AngularVelocity operator* (ad::physics::AngularVelocity const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::AngularVelocity operator* (ad::physics::RatioValue const &r, ad::physics::AngularVelocity const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::AngularVelocity operator/ (ad::physics::AngularVelocity const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::Distance operator* (ad::physics::Distance const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Distance operator* (ad::physics::RatioValue const &r, ad::physics::Distance const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Distance operator/ (ad::physics::Distance const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::DistanceSquared operator* (ad::physics::DistanceSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::DistanceSquared operator* (ad::physics::RatioValue const &r, ad::physics::DistanceSquared const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::DistanceSquared operator/ (ad::physics::DistanceSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::Duration operator* (ad::physics::Duration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Duration operator* (ad::physics::RatioValue const &r, ad::physics::Duration const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Duration operator/ (ad::physics::Duration const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::DurationSquared operator* (ad::physics::DurationSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::DurationSquared operator* (ad::physics::RatioValue const &r, ad::physics::DurationSquared const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::DurationSquared operator/ (ad::physics::DurationSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::ParametricValue operator* (ad::physics::ParametricValue const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::ParametricValue operator/ (ad::physics::ParametricValue const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::Probability operator* (ad::physics::Probability const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Probability operator* (ad::physics::RatioValue const &r, ad::physics::Probability const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Probability operator/ (ad::physics::Probability const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::RatioValue operator* (ad::physics::RatioValue const &r1, ad::physics::RatioValue const &r2)
 Arithmetic physics operation ratio = ratio * ratio. More...
 
ad::physics::Speed operator* (ad::physics::Speed const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Speed operator* (ad::physics::RatioValue const &r, ad::physics::Speed const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Speed operator/ (ad::physics::Speed const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::SpeedSquared operator* (ad::physics::SpeedSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::SpeedSquared operator* (ad::physics::RatioValue const &r, ad::physics::SpeedSquared const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::SpeedSquared operator/ (ad::physics::SpeedSquared const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 
ad::physics::Weight operator* (ad::physics::Weight const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value * r. More...
 
ad::physics::Weight operator* (ad::physics::RatioValue const &r, ad::physics::Weight const &value)
 Arithmetic ratio operation value = r * value. More...
 
ad::physics::Weight operator/ (ad::physics::Weight const &value, ad::physics::RatioValue const &r)
 Arithmetic physics operation value = value / r. More...
 

Function Documentation

◆ operator*() [1/26]

ad::physics::Acceleration operator* ( ad::physics::Acceleration const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
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/26]

ad::physics::Angle operator* ( ad::physics::Angle const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
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/26]

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
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/26]

ad::physics::AngularVelocity operator* ( ad::physics::AngularVelocity const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [5/26]

ad::physics::Distance operator* ( ad::physics::Distance const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [6/26]

ad::physics::DistanceSquared operator* ( ad::physics::DistanceSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [7/26]

ad::physics::Duration operator* ( ad::physics::Duration const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [8/26]

ad::physics::DurationSquared operator* ( ad::physics::DurationSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [9/26]

ad::physics::ParametricValue operator* ( ad::physics::ParametricValue const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [10/26]

ad::physics::Probability operator* ( ad::physics::Probability const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [11/26]

ad::physics::Acceleration operator* ( ad::physics::RatioValue const &  r,
ad::physics::Acceleration const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [12/26]

ad::physics::Angle operator* ( ad::physics::RatioValue const &  r,
ad::physics::Angle const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [13/26]

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [14/26]

ad::physics::AngularVelocity operator* ( ad::physics::RatioValue const &  r,
ad::physics::AngularVelocity const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [15/26]

ad::physics::Distance operator* ( ad::physics::RatioValue const &  r,
ad::physics::Distance const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [16/26]

ad::physics::DistanceSquared operator* ( ad::physics::RatioValue const &  r,
ad::physics::DistanceSquared const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [17/26]

ad::physics::Duration operator* ( ad::physics::RatioValue const &  r,
ad::physics::Duration const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [18/26]

ad::physics::DurationSquared operator* ( ad::physics::RatioValue const &  r,
ad::physics::DurationSquared const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [19/26]

ad::physics::Probability operator* ( ad::physics::RatioValue const &  r,
ad::physics::Probability const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [20/26]

ad::physics::Speed operator* ( ad::physics::RatioValue const &  r,
ad::physics::Speed const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [21/26]

ad::physics::SpeedSquared operator* ( ad::physics::RatioValue const &  r,
ad::physics::SpeedSquared const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [22/26]

ad::physics::Weight operator* ( ad::physics::RatioValue const &  r,
ad::physics::Weight const &  value 
)
inline

Arithmetic ratio operation value = r * value.

Parameters
[in]rratio value
[in]valuephysics value
Returns
value = r * 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*() [23/26]

ad::physics::RatioValue operator* ( ad::physics::RatioValue const &  r1,
ad::physics::RatioValue const &  r2 
)
inline

Arithmetic physics operation ratio = ratio * ratio.

Parameters
[in]r1ratio value
[in]r2ratio value
Returns
ratio = r1 * r2
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [24/26]

ad::physics::Speed operator* ( ad::physics::Speed const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [25/26]

ad::physics::SpeedSquared operator* ( ad::physics::SpeedSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator*() [26/26]

ad::physics::Weight operator* ( ad::physics::Weight const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value * r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value * r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid

◆ operator/() [1/13]

ad::physics::Acceleration operator/ ( ad::physics::Acceleration const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [2/13]

ad::physics::Angle operator/ ( ad::physics::Angle const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [3/13]

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [4/13]

ad::physics::AngularVelocity operator/ ( ad::physics::AngularVelocity const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [5/13]

ad::physics::Distance operator/ ( ad::physics::Distance const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [6/13]

ad::physics::DistanceSquared operator/ ( ad::physics::DistanceSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [7/13]

ad::physics::Duration operator/ ( ad::physics::Duration const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [8/13]

ad::physics::DurationSquared operator/ ( ad::physics::DurationSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [9/13]

ad::physics::ParametricValue operator/ ( ad::physics::ParametricValue const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [10/13]

ad::physics::Probability operator/ ( ad::physics::Probability const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [11/13]

ad::physics::Speed operator/ ( ad::physics::Speed const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [12/13]

ad::physics::SpeedSquared operator/ ( ad::physics::SpeedSquared const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero

◆ operator/() [13/13]

ad::physics::Weight operator/ ( ad::physics::Weight const &  value,
ad::physics::RatioValue const &  r 
)
inline

Arithmetic physics operation value = value / r.

Parameters
[in]valuephysics value
[in]rratio value
Returns
value = value / r
Note
throws a std::out_of_range exception if one of the two operands or the result of the operation is not valid or if the divisor is zero