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

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

Filename: kern/kern_scm/wcs_scm.cxx

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

; Find the x-direction of the current WCS.

(wcs:x-axis)

;; #[gvector 1 0 0]

; Define a new WCS.

(define wcs1 (wcs (position 10 10 10)


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

;; wcs1

; Get the x-direction of the new WCS.

(wcs:x-axis wcs1)

;; #[gvector 0 -0.707106781186548

;; -0.707106781186548]

; Define WCS wcs3.

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


(position 1 0 0)))

;; wcs13

; Find the x-direction of WCS wcs3.

(wcs:x-axis wcs13)

;; #[gvector 0 1 0]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0058.HTM