All Manuals > CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

apply-rotation

Function
Summary

Modifies a transform such that a rotation of a given number of radians is performed on any points multiplied by the transform.

Package

graphics-ports

Signature

apply-rotation transform theta => transform

Arguments

transform

A transform.

theta

A real number.

Description

The function apply-rotation modifies transform such that a rotation of theta radians is performed on any points multiplied by the transform. Any operations already contained in the transform occur before the new rotation.

The rotation is around the point (0,0).

If theta is positive, then the rotation is clockwise.

apply-rotation returns the transform.

Examples

examples/capi/graphics/metafile-rotation.lisp

See also

apply-rotation-around-point
apply-scale
apply-translation


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex