|
YAP
|
Go to the source code of this file.
Namespaces | |
| yap | |
Functions | |
real constants | |
| template<typename T = double> | |
| constexpr T | pi () |
| pi | |
| template<typename T = double> | |
| constexpr T | rad_per_deg () |
| convert degrees to radians | |
| template<typename T > | |
| constexpr T | rad (const T &d) |
| convert degrees to radians | |
| template<typename T = double> | |
| constexpr T | deg_per_rad () |
| convert radians to degrees | |
| template<typename T > | |
| constexpr T | deg (const T &r) |
| convert radians to degrees | |
Variables | |
Complex constants | |
complex zero | |
| constexpr auto | Complex_0 = std::complex<double>(0, 0) |
| constexpr auto | Complex_1 = std::complex<double>(1, 0) |
| complex one | |
| constexpr auto | Complex_i = std::complex<double>(0, 1) |
| complex i | |
#ThreeVector constants | |
| constexpr auto | ThreeAxis_X = ThreeVector<double>({1, 0, 0}) |
| X axis (ThreeVector) | |
| constexpr auto | ThreeAxis_Y = ThreeVector<double>({0, 1, 0}) |
| Y axis (ThreeVector) | |
| constexpr auto | ThreeAxis_Z = ThreeVector<double>({0, 0, 1}) |
| Z axis (ThreeVector) | |
| constexpr auto | ThreeAxes = CoordinateSystem<double, 3> {ThreeAxis_X, ThreeAxis_Y, ThreeAxis_Z} |
| Standard 3D coordinate system. | |
| constexpr auto | ThreeVector_0 = ThreeVector<double>({0, 0, 0}) |
| 0 as ThreeVector; | |
#FourVector constants | |
| constexpr auto | FourAxis_T = FourVector<double>({1, 0, 0, 0}) |
| T axis (FourVector) | |
| constexpr auto | FourAxis_X = FourVector<double>({0, 1, 0, 0}) |
| X axis (FourVector) | |
| constexpr auto | FourAxis_Y = FourVector<double>({0, 0, 1, 0}) |
| Y axis (FourVector) | |
| constexpr auto | FourAxis_Z = FourVector<double>({0, 0, 0, 1}) |
| Z axis (FourVector) | |
| constexpr auto | FourAxes = CoordinateSystem<double, 4>({FourAxis_T, FourAxis_X, FourAxis_Y, FourAxis_Z}) |
| Standard 4D coordinate system. | |
| constexpr auto | FourVector_0 = FourVector<double>({0, 0, 0, 0}) |
| 0 as FourVector; | |
1.8.6