- 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
26 lines
392 B
Markdown
26 lines
392 B
Markdown
# OBB::Intersects(OBB)
|
||
|
||
```cpp
|
||
bool Intersects(const OBB& other) const;
|
||
```
|
||
|
||
判断两个 OBB 是否相交(SAT 分离轴定理)。
|
||
|
||
**返回:** 两包围盒是否相交
|
||
|
||
**复杂度:** O(1)
|
||
|
||
**示例:**
|
||
|
||
```cpp
|
||
OBB a(centerA, extentsA);
|
||
OBB b(centerB, extentsB);
|
||
if (a.Intersects(b)) {
|
||
// 两包围盒相交
|
||
}
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [AABB 总览](aabb.md) - 返回 AABB 概览
|