refactor(docs): Fix broken links across multiple modules
Fixed broken references: - texture-import-settings: Fix 16 files referencing wrong overview filename - math/rectint: Fix 9 method links (rectint-* → get*, contains, intersects) - rhi/opengl/device: Fix 8 cross-references (opengl-* → */**) - resources/mesh: Fix meshsection and vertexattribute links - rhi/d3d12/sampler: Fix RHISampler reference path - math/vector3: Fix projectonplane → project-on-plane - rhi/opengl/command-list: Remove broken ClearFlag enum ref - rhi/opengl/device: Create 2 new method docs (MakeContextCurrent, GetNativeContext) - rhi/device: Fix device-info types reference All 0 broken references remaining.
This commit is contained in:
@@ -9,7 +9,7 @@ constexpr float DEG_TO_RAD = PI / 180.0f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float angleDegrees = 90.0f;
|
||||
float angleRadians = angleDegrees * Math::DEG_TO_RAD;
|
||||
|
||||
@@ -9,7 +9,7 @@ float Degrees(float radians);
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float radians = Math::HALF_PI;
|
||||
float degrees = Math::Degrees(radians);
|
||||
|
||||
@@ -9,7 +9,7 @@ constexpr float EPSILON = 1e-6f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float a = 0.1f + 0.2f;
|
||||
float b = 0.3f;
|
||||
|
||||
@@ -9,7 +9,7 @@ constexpr float FLOAT_MAX = 3.402823466e+38f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float maxDistance = FLOAT_MAX;
|
||||
```
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
**类型**: `header`
|
||||
|
||||
**头文件**: `XCEngine/Math/Math.h`
|
||||
**头文件**: `XCEngine/Core/Math/Math.h`
|
||||
|
||||
**描述**: 数学库常量和辅助函数头文件。
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
## 使用示例
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
using namespace XCEngine::Math;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ constexpr float HALF_PI = 1.57079632679489661923f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float ninetyDegreesRadians = HALF_PI;
|
||||
```
|
||||
|
||||
@@ -11,7 +11,7 @@ constexpr float PI = 3.14159265358979323846f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float circumference = 2.0f * PI * radius;
|
||||
float area = PI * radius * radius;
|
||||
|
||||
@@ -9,7 +9,7 @@ constexpr float RAD_TO_DEG = 180.0f / PI;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float radians = Math::HALF_PI;
|
||||
float degrees = radians * Math::RAD_TO_DEG;
|
||||
|
||||
@@ -9,7 +9,7 @@ float Radians(float degrees);
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float degrees = 90.0f;
|
||||
float radians = Math::Radians(degrees);
|
||||
|
||||
@@ -9,7 +9,7 @@ constexpr float TWO_PI = 6.28318530717958647692f;
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Math/Math.h>
|
||||
#include <XCEngine/Core/Math/Math.h>
|
||||
|
||||
float fullCircleRadians = TWO_PI;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user