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:
23
docs/api/math/vector3/reflect.md
Normal file
23
docs/api/math/vector3/reflect.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Vector3::Reflect
|
||||
|
||||
```cpp
|
||||
static Vector3 Reflect(const Vector3& inDirection, const Vector3& inNormal)
|
||||
```
|
||||
|
||||
计算向量关于法线的反射方向。
|
||||
|
||||
**参数:**
|
||||
- `inDirection` - 入射方向向量
|
||||
- `inNormal` - 反射表面的法线(应为单位向量)
|
||||
|
||||
**返回:** `Vector3` - 反射方向
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector3 incoming(1.0f, -1.0f, 0.0f);
|
||||
Vector3 normal(0.0f, 1.0f, 0.0f);
|
||||
Vector3 reflected = Vector3::Reflect(incoming, normal); // (1, 1, 0)
|
||||
```
|
||||
Reference in New Issue
Block a user