Action:
|
Prints a transform.
|
|
Filename:
|
kern/kern_scm/tran_scm.cxx
|
|
Syntax:
|
(transform:print transform)
|
|
Arg Types:
|
transform
|
transform
|
|
Returns:
|
transform
|
|
Description:
|
Prints the details of a transform.
|
|
|
transform specifies the transform to use.
|
|
Example:
|
; transform:print
|
|
; create a scaling transform
|
|
(define s (transform:scaling 1 2 3))
|
|
;; s
|
|
; create a rotation transform
|
|
(define r (transform:rotation
|
|
|
(position 0 0 0) (gvector 0 0 1) 30))
|
|
;; r
|
|
; create a translation transform
|
|
(define t (transform:translation (gvector 3 4 5)))
|
|
;; t
|
|
; compose the three
|
|
(define sr (transform:compose s r))
|
|
;; sr
|
|
(define srt (transform:compose
|
|
|
(transform:compose s r) t))
|
|
;; srt
|
|
; print the result
|
|
(transform:print srt)
|
|
;; #[transform 72496304]
|
|
; rotation no reflection shear not identity
|
|
; translation part:
|
|
; 3.000000 4.000000 5.000000
|
|
; affine part:
|
|
; 0.231455 0.133631 0.000000
|
|
; -0.267261 0.462910 0.000000
|
|
; 0.000000 0.000000 0.801784
|
|
; scaling part:
|
|
; 3.741657
|