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]
|