wcs:z-axis
List of: Scheme Extensions
Subjects: Work Coordinate Systems
Contents: Kernel

Action: Gets the z-direction of the active coordinate system.

Filename: kern/kern_scm/wcs_scm.cxx

Syntax: (wcs:z-axis [wcs])

Arg Types: wcs wcs

Returns: gvector


wcs is an optional argument that specifies the WCS to search. If wcs is not specified, the active WCS is used.

Example: ; wcs:z-axis

; Get the z-axis of the current WCS.

(wcs:z-axis)

;; #[gvector 0 0 1]

; Define a new WCS.

(define wcs1 (wcs (position 10 10 10)


(position 10 0 0) (position 0 10 0)))

;; wcs1

; Get the z-axis of the new WCS.

(wcs:z-axis wcs1)

;; #[gvector 0.577350269189626 0.577350269189626

;; -0.577350269189626]

; Define wcs3.

(define wcs3 (wcs (position 3 2 1) (gvector 0 1 0)


(position 1 0 0)))

;; wcs3

; Get the z-axis of wcs3.

(wcs:z-axis wcs3)

;; #[gvector -0.447213595499958 0 0.894427190999916]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0060.HTM