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

21 lines
318 B
Markdown
Raw Normal View History

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