List of: Scheme Extensions
Subjects: Mathematics
Contents: Kernel

Action: Sets the z-direction component of a gvector.

Filename: kern/kern_scm/gvec_scm.cxx

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

Arg Types: gvector gvector

z real

Returns: real

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

gvector identifies the original x-, y-, and z-values.

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

Example: ; gvector:set-z!

; Set new x-, y-, and z-components

; in an existing gvector.

(define vector1 (gvector 1 0 0))

;; vector1

; Set a new z-component in an existing gvector.

(gvector:set-z! vector1 2)

;; 2