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:
20
docs/api/math/sphere/contains.md
Normal file
20
docs/api/math/sphere/contains.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Sphere::Contains
|
||||
|
||||
```cpp
|
||||
bool Contains(const Vector3& point) const
|
||||
```
|
||||
|
||||
检测点是否在球体内(包括表面)。
|
||||
|
||||
**参数:**
|
||||
- `point` - 要检测的点
|
||||
|
||||
**返回:** `bool` - true 表示点在球体内
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
if (sphere.Contains(point)) { /* point inside */ }
|
||||
```
|
||||
20
docs/api/math/sphere/intersects.md
Normal file
20
docs/api/math/sphere/intersects.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Sphere::Intersects
|
||||
|
||||
```cpp
|
||||
bool Intersects(const Sphere& other) const
|
||||
```
|
||||
|
||||
检测两个球体是否相交。
|
||||
|
||||
**参数:**
|
||||
- `other` - 另一个球体
|
||||
|
||||
**返回:** `bool` - true 表示相交
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
if (sphere.Intersects(other)) { /* collision */ }
|
||||
```
|
||||
32
docs/api/math/sphere/sphere.md
Normal file
32
docs/api/math/sphere/sphere.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Sphere
|
||||
|
||||
3D 球体结构体。
|
||||
|
||||
**头文件:** `#include <XCEngine/Math/Sphere.h>`
|
||||
|
||||
**命名空间:** `XCEngine::Math`
|
||||
|
||||
## 结构体定义
|
||||
|
||||
```cpp
|
||||
struct Sphere {
|
||||
Vector3 center = Vector3::Zero();
|
||||
float radius = 0.0f;
|
||||
};
|
||||
```
|
||||
|
||||
## 构造函数
|
||||
|
||||
- `Sphere()` - 默认构造
|
||||
- `Sphere(const Vector3& center, float radius)` - 从中心和半径构造
|
||||
|
||||
## 实例方法
|
||||
|
||||
| 方法 | 返回值 | 描述 |
|
||||
|------|--------|------|
|
||||
| [Contains(point)](contains.md) | `bool` | 点是否在球体内 |
|
||||
| [Intersects(other)](intersects.md) | `bool` | 与另一个球体相交 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Math 模块总览](../math.md) - 返回 Math 模块总览
|
||||
Reference in New Issue
Block a user