Files
XCSDD/docs/api/math/quaternion/fromaxisangle.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

22 lines
420 B
Markdown

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