All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

with-transformed-point

Macro
Summary

Binds a point transformed by a given ports transform to two variables across the body of the macro.

Package

graphics-ports

Signature

with-transformed-point ( new-x new-y port x y ) &body body
=> result

Arguments

new-x

A variable.

new-y

A variable.

port

A graphics port.

x

A real number.

y

A real number.

body

A body of Lisp code.

Values

result

The return value of the last form executed in body .

Description

The with-transformed-point macro transforms the point given by ( x y ) using the port 's transform and the resulting values are bound to the new-x and new-y variables. The body of the macro is then evaluated with this binding.


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex