Files
XCSDD/docs/api/math/aabb/obb-intersects-obb.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

392 B
Raw Blame History

OBB::Intersects(OBB)

bool Intersects(const OBB& other) const;

判断两个 OBB 是否相交SAT 分离轴定理)。

返回: 两包围盒是否相交

复杂度: O(1)

示例:

OBB a(centerA, extentsA);
OBB b(centerB, extentsB);
if (a.Intersects(b)) {
    // 两包围盒相交
}

相关文档