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

Action: Sets the z-component of a position.

Filename: kern/kern_scm/pos_scm.cxx

Syntax: (position:set-z! position z)

Arg Types: position position

z real

Returns: real

Description: The coordinates are computed relative to the active coordinate system. This extension returns the z-coordinate as a real.


position specifies the original x and y values.


z specifies the value to replace the original z-value specified in position.

Example: ; position:set-z!

; Set a new z-coordinate for an existing position.

(define pos1 (position 0 0 0))

;; pos1

(position:set-z! pos1 -4)

;; -4
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0112.HTM