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
This commit is contained in:
21
docs/api/math/quaternion/lookrotation.md
Normal file
21
docs/api/math/quaternion/lookrotation.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Quaternion::LookRotation
|
||||
|
||||
```cpp
|
||||
static Quaternion LookRotation(const Vector3& forward, const Vector3& up = Vector3::Up())
|
||||
```
|
||||
|
||||
创建使 forward 方向朝向目标的旋转四元数。
|
||||
|
||||
**参数:**
|
||||
- `forward` - 前方向向量
|
||||
- `up` - 上方向向量(默认 Y 轴向上)
|
||||
|
||||
**返回:** `Quaternion` - 看向方向的旋转
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Quaternion lookAt = Quaternion::LookRotation(target - position);
|
||||
```
|
||||
Reference in New Issue
Block a user