All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

apply-rotation-around-point Function

Summary

Modifies a transform such that a specified rotation around a specified point is performed on any points multiplied by the transform.

Package

graphics-ports

Signature

apply-rotation-around-point transform theta x y => transform

Arguments
transform
theta
A real number.
A real number.
A real number.
Values
transform
Description

The function apply-rotation-around-point modifies transform such that a clockwise rotation of theta radians around the point (x,y) is performed on any points multiplied by the transform. Any operations already contained in the transform occur before the new rotation.

apply-rotation-around-point returns the transform.

Notes

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

Examples
(example-edit-file "capi/graphics/rotation-around-point")

There are further examples in 20 Self-contained examples.

See also

apply-rotation
graphics-state
transform


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15