Files
XCSDD/docs/api/math/sphere/sphere.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

656 B

Sphere

3D 球体结构体。

头文件: #include <XCEngine/Math/Sphere.h>

命名空间: XCEngine::Math

结构体定义

struct Sphere {
    Vector3 center = Vector3::Zero();
    float radius = 0.0f;
};

构造函数

  • Sphere() - 默认构造
  • Sphere(const Vector3& center, float radius) - 从中心和半径构造

实例方法

方法 返回值 描述
Contains(point) bool 点是否在球体内
Intersects(other) bool 与另一个球体相交

相关文档