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:
24
docs/api/math/vector3/movetowards.md
Normal file
24
docs/api/math/vector3/movetowards.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Vector3::MoveTowards
|
||||
|
||||
```cpp
|
||||
static Vector3 MoveTowards(const Vector3& current, const Vector3& target, float maxDistance)
|
||||
```
|
||||
|
||||
将当前向量朝目标向量移动指定距离。如果距离已小于 maxDistance,则直接返回目标。
|
||||
|
||||
**参数:**
|
||||
- `current` - 当前向量
|
||||
- `target` - 目标向量
|
||||
- `maxDistance` - 最大移动距离
|
||||
|
||||
**返回:** `Vector3` - 移动后的位置
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector3 current(0.0f, 0.0f, 0.0f);
|
||||
Vector3 target(10.0f, 0.0f, 0.0f);
|
||||
Vector3 moved = Vector3::MoveTowards(current, target, 3.0f); // (3.0f, 0, 0)
|
||||
```
|
||||
Reference in New Issue
Block a user