Files
XCSDD/docs/api/math/bounds/contains.md

21 lines
294 B
Markdown
Raw Normal View History

# Bounds::Contains
```cpp
bool Contains(const Vector3& point) const
```
检测点是否在包围盒内。
**参数:**
- `point` - 要检测的点
**返回:** `bool` - true 表示点在盒内
**复杂度:** O(1)
**示例:**
```cpp
if (bounds.Contains(point)) { /* inside */ }
```