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

21 lines
282 B
Markdown
Raw Normal View History

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