Action:
|
Gets the distance between two positions.
|
|
Filename:
|
kern/kern_scm/pos_scm.cxx
|
|
Syntax:
|
(position:distance position1 {position2 | ray})
|
|
Arg Types:
|
position1
|
position
|
|
position2
|
position
|
|
ray
|
ray
|
|
Returns:
|
real
|
|
|
position1 defines the start location.
|
|
|
position2 defines the end location.
|
|
|
ray defines the ray to calculate the distance.
|
|
Example:
|
; position:distance
|
|
; Determine the distance between two positions.
|
|
(define pos1 (position 20 20 0 "cylindrical"))
|
|
;; pos1
|
|
(position:distance pos1 (position 0 20 0))
|
|
;; 22.9430574540418
|