dist()

概要

2 点間の距離を返します。

構文

dist ( p1 As Point, _
       p2 As Point ) As Number 
引数 [タイプ] 説明
p1 距離を取得する 1 番目のです。
p2 距離を取得する 2 番目のです。

例 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