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