docs: update math API docs
This commit is contained in:
@@ -12,6 +12,8 @@ static Vector3 Project(const Vector3& vector, const Vector3& onNormal)
|
||||
|
||||
**返回:** `Vector3` - 投影结果。如果法线长度为 0,返回零向量。
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
@@ -21,3 +23,8 @@ Vector3 v(1.0f, 1.0f, 0.0f);
|
||||
Vector3 normal(1.0f, 0.0f, 0.0f);
|
||||
Vector3 projected = Vector3::Project(v, normal); // (1, 0, 0)
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector3 类总览](vector3.md) - 返回类总览
|
||||
- [`ProjectOnPlane`](projectonplane.md) - 投影到平面上
|
||||
|
||||
Reference in New Issue
Block a user