docs: update math API docs
This commit is contained in:
@@ -12,6 +12,8 @@ Vector3 operator*(const Quaternion& q, const Vector3& v)
|
||||
|
||||
**返回:** `Vector3` - 旋转后的向量
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
@@ -21,3 +23,7 @@ Quaternion rot = Quaternion::FromEulerAngles(0.0f, 90.0f * DEG_TO_RAD, 0.0f);
|
||||
Vector3 forward = Vector3::Forward();
|
||||
Vector3 rotated = rot * forward; // 绕 Y 轴旋转 90 度
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector3 类总览](vector3.md) - 返回类总览
|
||||
|
||||
Reference in New Issue
Block a user