position:set!
List of: Scheme Extensions
Subjects: Mathematics
Contents: Kernel

Action: Sets the x, y, and z-components of a position.

Filename: kern/kern_scm/pos_scm.cxx

Syntax: (position:set! pos1 {{x y z} | {pos2}})

Arg Types: pos1 position

x real

y real

z real

pos2 position

Returns: position


pos1 specifies the position to be set.


If x, y and z values are specified, they are copied into pos1.


If pos2 is specified, its position value is copied into pos1.

Example: ; position:set!

; Set new x-, y-, and z-coordinates for

; an existing position.

(define pos1 (position 0 0 0))

;; pos1

(position:set! pos1 3 5 4)

;; #[position 3 5 4]
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0109.HTM