Files
XCSDD/docs/api/math/frustum/frustum.md
ssdfasd 58a83f445a 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
2026-03-19 12:44:08 +08:00

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 球体是否与视锥相交

相关文档