- 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.1 KiB
1.1 KiB
Frustum
视锥体,用于视锥剔除。
头文件: #include <XCEngine/Math/Frustum.h>
命名空间: XCEngine::Math
类定义
class Frustum {
public:
Plane planes[6];
enum class PlaneIndex {
Left = 0,
Right = 1,
Bottom = 2,
Top = 3,
Near = 4,
Far = 5
};
bool Contains(const Vector3& point) const;
bool Contains(const Sphere& sphere) const;
bool Contains(const Bounds& bounds) const;
bool Intersects(const Bounds& bounds) const;
bool Intersects(const Sphere& sphere) const;
};
实例方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| Contains(point) | bool |
点是否在视锥内 |
| Contains(sphere) | bool |
球体是否完全在视锥内 |
| Contains(bounds) | bool |
Bounds 是否完全在视锥内 |
| Intersects(bounds) | bool |
Bounds 是否与视锥相交 |
| Intersects(sphere) | bool |
球体是否与视锥相交 |
相关文档
- Math 模块总览 - 返回 Math 模块总览