Transforms the coordinates of a rectangle and binds them to variables while executing a body of code.
A variable.
A variable.
A variable.
A variable.
A graphics port.
A real number.
A real number.
A real number.
A real number.
A body of Lisp code.
The macro with-transformed-rect
transforms the coordinates of a rectangle and binds them to four variables for the duration of the macro's body.
During the evaluation of the
body
of the macro with-transformed-rect
, the two points (
x1, y1
) and (
x2, y2
) are transformed by the port's current transform and the resulting values are bound to the variables named by the arguments
nx1 ny1 nx2
and
ny2
.
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015