- 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
474 B
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;
相关文档
- Math 总览 - 返回 Math 概览