Files
XCSDD/docs/api/math/h/two-pi.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

470 B

Math::TWO_PI

constexpr float TWO_PI = 6.28318530717958647692f;

TWO_PI 是圆周率的两倍,即完整的圆周长对应的弧度值,约为 6.28318530717958647692。该常量常用于需要完整圆周旋转的场景,例如角度归一化、三角函数周期计算、圆形运动等。

示例:

#include <XCEngine/Math/Math.h>

float fullCircleRadians = Math::TWO_PI;

相关文档