docs: update math API docs
This commit is contained in:
@@ -13,6 +13,8 @@ static Vector3 MoveTowards(const Vector3& current, const Vector3& target, float
|
||||
|
||||
**返回:** `Vector3` - 移动后的位置
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
@@ -22,3 +24,7 @@ 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)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector3 类总览](vector3.md) - 返回类总览
|
||||
|
||||
Reference in New Issue
Block a user