Files
XCSDD/docs/api/math/h/rad-to-deg.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

474 B

Math::RAD_TO_DEG

constexpr float RAD_TO_DEG = 180.0f / Math::PI;

RAD_TO_DEG 是弧度转角度的转换系数。1 弧度等于 180 / PI 度,约等于 57.29577951308232087685。使用该常量将弧度值乘以 RAD_TO_DEG 即可得到对应的角度值。

示例:

#include <XCEngine/Math/Math.h>

float radians = Math::HALF_PI;
float degrees = radians * Math::RAD_TO_DEG;

相关文档