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.
597 B
597 B
Vector3::Vector3
Vector3() = default;
constexpr Vector3(float x, float y, float z);
构造一个三维向量。
参数:
x- X 分量,默认为 0.0fy- Y 分量,默认为 0.0fz- Z 分量,默认为 0.0f
返回: 无
线程安全: ✅
复杂度: O(1)
示例:
#include "XCEngine/Core/Math/Vector3.h"
using namespace XCEngine::Math;
int main() {
Vector3 a;
Vector3 b(1.0f, 2.0f, 3.0f);
Vector3 c(4.5f, 5.5f, 6.5f);
return 0;
}
相关文档
- Vector3 类总览 - 返回类总览