Action:
|
Creates a new position offset from a given position.
|
|
Filename:
|
kern/kern_scm/pos_scm.cxx
|
|
Syntax:
|
(position:offset position gvector)
|
|
Arg Types:
|
position
|
position
|
|
gvector
|
gvector
|
|
Returns:
|
position
|
|
|
position specifies the location of the old position.
|
|
|
gvector specifies the gvector to apply to the position.
|
|
Example:
|
; position:offset
|
|
; Create a new position, offset by a gvector
|
|
; from a given position.
|
|
(position:offset (position 0 0 0)
|
|
|
(gvector 10 10 10))
|
|
;; #[position 10 10 10]
|
|
; Define the start position.
|
|
(define pos-start (position 0 -4 0))
|
|
;; pos-start
|
|
; Define the start direction.
|
|
(define dir-start (gvector 8 -8 0))
|
|
;; dir-start
|
|
; Create a new position, offset by a gvector
|
|
; from a given position.
|
|
(position:offset pos-start dir-start)
|
|
;; #[position 8 -12 0]
|