All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS 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.

Notes

See graphics-state for details of how a transform is used.

Examples
(example-edit-file "capi/graphics/metafile-rotation")
See also

apply-rotation-around-point
apply-scale
apply-translation
graphics-state
transform


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex