dist()

概要

2 つの points の間の距離を返します。

構文

dist ( p1 As Point, _
       p2 As Point ) As Number 
引数 [タイプ] 説明
p1 Point 距離を取得するには、まず point を選択します。
p2 Point 2 番目の距離を取得するには、 point をクリックします。

例 1

Intent >dist(point(0, 0, 0), point(1, 0, 0)) 
--> 1.0 

例 2

Intent >dist(point(0, 0, 0), point(1, 1, 1)) 
--> 1.732