mp_units::angular¶
A system of units that treats angle as a base dimension
Description¶
Experimental and standalone, without the ISQ quantity hierarchy. It provides angular units such as the radian, the degree, and the steradian, and trigonometric functions that take or return them.
using angular::unit_symbols::deg;
using angular::unit_symbols::rad;
quantity angle = 90. * deg;
quantity in_radians = angle.in(rad); // 1.5708 rad
Types¶
Functions¶
| Name | Description |
|---|---|
acos | |
asin | |
atan | |
atan2 | |
cbrt | |
cos | |
inverse | |
operator* | scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation. |
operator/ | scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation. |
pow | |
sin | |
sqrt | |
tan | |
operator<< | Stream insertion operator |
operator== | Equality operator |
Variables¶
See Also¶
- Strong Angular System in the User's Guide
- Angular System for every entity it defines