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

Action: Sets the x-component of a position.

Filename: kern/kern_scm/pos_scm.cxx

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

Arg Types: position position

x real

Returns: real

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


position identifies the original y and z values.


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

Example: ; position:set-x!

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

(define pos1 (position 0 0 0))

;; pos1

(position:set-x! pos1 5)

;; 5
PDF/KERN/14SCI.PDF
HTM/DATA/KERN/KERN/14SCI/0110.HTM