点击图片可看到更多讯息
开始使用于
- 游戏:
- Arma 3
- 版本:
- 0.50
描述
- 描述:
- Computes the squared distance between two objects or positions.
基本句法
范例
- 范例1:
player distanceSqr (leader player)
- 范例2:
_distance = sqrt ((x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2); _distanceSqr = (x2 - x1) ^ 2 + (y2 - y1) ^ 2 + (z2 - z1) ^ 2; _distance = [x1, y1, z1] distance [x2, y2, z2]; _distanceSqr = [x1, y1, z1] distanceSqr [x2, y2, z2]; _distance = sqrt ([x1, y1, z1] distanceSqr [x2, y2, z2]); _distanceSqr = ([x1, y1, z1] distance [x2, y2, z2]) ^ 2;
额外资讯
- 多人游戏:
- -
- 也可以看看:
- distancevectorDistanceSqrdistance2D