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:
25
docs/api/math/vector3/magnitude.md
Normal file
25
docs/api/math/vector3/magnitude.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Vector3::Magnitude
|
||||
|
||||
```cpp
|
||||
static float Magnitude(const Vector3& v)
|
||||
float Magnitude() const
|
||||
```
|
||||
|
||||
计算向量的长度(欧几里得范数)。
|
||||
|
||||
**静态版本参数:**
|
||||
- `v` - 要计算长度的向量
|
||||
|
||||
**实例版本:** 计算当前向量的长度。
|
||||
|
||||
**返回:** `float` - 向量长度 sqrt(x * x + y * y + z * z)
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector3 v(1.0f, 2.0f, 2.0f);
|
||||
float len = v.Magnitude(); // 3.0f
|
||||
float len2 = Vector3::Magnitude(v); // 3.0f
|
||||
```
|
||||
Reference in New Issue
Block a user