Action:
|
Gets the position from a list of positions that is closest to a given position.
|
|
Filename:
|
kern/kern_scm/pos_scm.cxx
|
|
Syntax:
|
(position:closest position position-list)
|
|
Arg Types:
|
position
|
position
|
|
position-list
|
position | (position ... )
|
|
Returns:
|
position
|
|
|
position specifies the location that all other positions are compared against.
|
|
|
position-list specifies the locations to compare against the given position.
|
|
Example:
|
; position:closest
|
|
; Determine the closest position in a list
|
|
; of positions to a given position.
|
|
(define pos1 (position:closest (position 30 30 30)
|
|
|
(list (position 10 10 0) (position 25 22 0))))
|
|
;; pos1
|