Returns a new transform object initialized according to a set of optional arguments.
graphics-ports
make-transform &optional a b c d e f => transform
Real numbers. |
transform |
A transform object. |
The function make-transform
returns a new transform object initialized according to the optional args. The default args make the unit transform.
Default values are as follows: a and d are 1; b, c, e, and f are 0. The transform matrix is:
a b 0 c d 0 e f 1
for generalized two dimensional points of the form (x y 1)
.
See graphics-state for details of how a transform is used.
This transform will cause rotation by pi/4 radians:
(let ((s (sin (/ pi 4))) (c (cos (/ pi 4)))) (gp:make-transform c s (- s) c 0 0))
CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02