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

488 B

Math::Radians

float Radians(float degrees);

Radians 函数将角度值转换为弧度值。转换公式为:弧度 = 角度 * (PI / 180)。该函数是 Degrees 函数的逆函数,常用于将 UI 输入的角度值或游戏中的角度值转换为三角函数所需的弧度值。

示例:

#include <XCEngine/Math/Math.h>

float degrees = 90.0f;
float radians = Math::Radians(degrees);

相关文档