Action:
|
Sets the
y-component of a position.
|
|
Filename:
|
kern/kern_scm/pos_scm.cxx
|
|
Syntax:
|
(position:set-y! position y)
|
|
Arg Types:
|
position
|
position
|
|
y
|
real
|
|
Returns:
|
real
|
|
Description:
|
The coordinates are computed relative to the active coordinate system. This extension returns the
y-coordinate as a
real.
|
|
|
position identifies the original
x and
z values.
|
|
|
y specifies the value to replace the original
y-value specified in
position.
|
|
Example:
|
; position:set-y!
|
|
; Set a new y-coordinate for an existing position.
|
|
(define pos1 (position 0 0 0))
|
|
;; pos1
|
|
(position:set-y! pos1 8)
|
|
;; 8
|