- 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
420 B
420 B
Quaternion::FromAxisAngle
static Quaternion FromAxisAngle(const Vector3& axis, float radians)
从轴角创建四元数。
参数:
axis- 旋转轴(应为单位向量)radians- 旋转角度(弧度)
返回: Quaternion - 表示旋转的四元数
复杂度: O(1)
示例:
Quaternion rot = Quaternion::FromAxisAngle(Vector3::Up(), 90.0f * DEG_TO_RAD);