Distance (Sphere)
菜单路径:Operator > Math > Geometry > Distance (Sphere)
Distance (Sphere) 运算符获取一个球体和一个位置并计算:
- 球体上距离该位置最近的点。
- 最近点和位置之间的距离。
运算符属性
输入 | 类型 | 描述 |
---|---|---|
Sphere | Sphere | 此运算符评估的球体。此运算符返回的点 (closestPosition) 是这个球体上最接近 Position 的点。 |
Position | Position | 此运算符评估的位置。此运算符返回的点 (closestPosition) 是从此位置最接近 Sphere 的点。 |
输出 | 类型 | 描述 |
---|---|---|
closestPosition | Position | Sphere 上最接近 Position 的点的位置。 |
distance | float | Position 至 closestPosition 的距离。如果 Position 在 Sphere 外部,此值为正。如果 Position 在 Sphere 内部,此值为负。 |