Next: , Previous: Object sub-types, Up: General object functions


2.2.1.2 Object transformations

Objects can be translated, rotated, or mirrored about a point.

— Function: translate-objects! vector [objects...]

Translate objects by vector, a world coordinate distance in the form ‘(x . y)’. Returns a list of the modified objects.

— Function: rotate-objects! center angle [objects...]

Translate objects anti-clockwise by angle about center, a world coordinate position in the form ‘(x . y)’. angle must be an integer multiple of 90 degrees. Returns a list of the modified objects.

— Function: mirror-objects! x-offset [objects...]

Mirror objects in the line ‘x = x-offset’. Returns a list of the modified objects.