This commit is contained in:
2026-08-06 18:59:27 +08:00
parent 2e02fb0e98
commit f89d77ae0e
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -28,10 +28,12 @@
//! 类似std::numbers的常数
namespace dl::Numbers
{
constexpr Float EARTH_fADIUS = 6371.393_f;//!< 地球半径km
constexpr Float GRAVITY = 9.8_f;//!< 地球重力加速度(赤道最小)
constexpr Float EULER = 2.718281828459045_f;//!< 自然常数
constexpr Float EARTH_fADIUS = 6371.393_f; //!< 地球半径km
constexpr Float GRAVITY = 9.8_f; //!< 地球重力加速度(赤道最小)
constexpr Float EULER = 2.718281828459045_f; //!< 自然常数
constexpr Float RATIO_GOLD = 0.618033988749894_f;//!< 黄金比例
constexpr Float SQRT_2 = 1.41421356237_f; //!< 根号2
constexpr Float PI = 3.1415926536_f; //!< 圆周率
}
//! 类似numeric头文件的数值操作