wcs:to-wcs-transform
List of: Scheme Extensions
Subjects: Transforms, Work Coordinate Systems
Contents: Kernel

Action: Gets the transform from the active WCS to the specified WCS.

Filename: kern/kern_scm/wcs_scm.cxx

Syntax: (wcs:to-wcs-transform [wcs])

Arg Types: wcs wcs

Returns: transform


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

Example: ; wcs:to-wcs-transform

; Get the transform from the active coordinate

; system to the current WCS.

(define transform1 (wcs:to-wcs-transform))

;; transform1

; Define a new WCS.

(define wcs1 (wcs (position 0 0 0)


(position 0 10 0) (gvector 1 0 0)))

;; wcs1

; Get the transform from the active coordinate

; system to the new WCS.

(wcs:to-wcs-transform wcs1)

;; #[transform 1074571664]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0057.HTM