docs: update math API docs

This commit is contained in:
2026-03-20 02:35:15 +08:00
parent e165dbea1c
commit c5b17239ca
243 changed files with 5307 additions and 1327 deletions

View File

@@ -4,7 +4,7 @@
static Vector2 Lerp(const Vector2& a, const Vector2& b, float t)
```
线性插值两个向量之间。参数 t 会在 [0, 1] 范围内被限制。
在两个向量之间进行线性插值。参数 t 会在 [0, 1] 范围内被限制,确保插值结果在两端向量之间
**参数:**
- `a` - 起始向量
@@ -13,6 +13,10 @@ static Vector2 Lerp(const Vector2& a, const Vector2& b, float t)
**返回:** `Vector2` - 插值结果
**线程安全:**
**异常:** (无)
**复杂度:** O(1)
**示例:**
@@ -22,3 +26,8 @@ Vector2 start(0.0f, 0.0f);
Vector2 end(10.0f, 10.0f);
Vector2 mid = Vector2::Lerp(start, end, 0.5f); // (5.0f, 5.0f)
```
## 相关文档
- [Vector2](vector2.md) - 返回类总览
- [MoveTowards](movetowards.md) - 朝目标移动