- 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
1.0 KiB
1.0 KiB
Plane
3D 平面结构体,由法线和距离表示。
头文件: #include <XCEngine/Math/Plane.h>
命名空间: XCEngine::Math
结构体定义
struct Plane {
Vector3 normal = Vector3::Up();
float distance = 0.0f;
};
构造函数
Plane()- 默认构造 (y=0 平面)Plane(const Vector3& normal, float distance)- 从法线和距离构造
静态工厂方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| FromPoints(a, b, c) | Plane |
从三个不共线点创建 |
实例方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| GetDistanceToPoint(point) | float |
点到平面的有符号距离 |
| GetClosestPoint(point) | Vector3 |
平面上最接近给定点的点 |
| GetSide(point) | bool |
点在平面的哪一侧 |
| Intersects(sphere) | bool |
与球体相交 |
相关文档
- Math 模块总览 - 返回 Math 模块总览