Files
XCSDD/docs/api/math/plane/getdistancetopoint.md

21 lines
314 B
Markdown
Raw Normal View History

# Plane::GetDistanceToPoint
```cpp
float GetDistanceToPoint(const Vector3& point) const
```
计算点到平面的有符号距离。
**参数:**
- `point` - 要计算的点
**返回:** `float` - 有符号距离
**复杂度:** O(1)
**示例:**
```cpp
float dist = plane.GetDistanceToPoint(point);
```