2 つの points の間の距離を返します。
dist ( p1 As Point, _
p2 As Point ) As Number
引数 | [タイプ] | 説明 |
---|---|---|
p1 | Point | 距離を取得するには、まず point を選択します。 |
p2 | Point | 2 番目の距離を取得するには、 point をクリックします。 |
Intent >dist(point(0, 0, 0), point(1, 0, 0))
--> 1.0
Intent >dist(point(0, 0, 0), point(1, 1, 1))
--> 1.732