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

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

Filename: kern/kern_scm/wcs_scm.cxx

Syntax: (wcs:y-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:y-axis

; Get the y-direction of the current WCS.

(wcs:y-axis)

;; #[gvector 0 1 0]

; Define a new WCS.

(define wcs1 (wcs (position 10 10 10)


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

;; wcs1

; Get the y-direction of the new WCS.

(wcs:y-axis wcs1)

;; #[gvector -0.816496580927726 0.408248290463863

;; -0.408248290463863]

; Define WCS wcs3.

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


(position 1 0 0)))

;; wcs3

; Get the y-direction of wcs3.

(wcs:y-axis wcs3)

;; #[gvector -0.894427190999916 0

;; -0.447213595499958]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0059.HTM