Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

compose-transform-with-rotation

Generic function

Summary

Creates a new transform by composing a given rotation with a transform.

Signature

compose-transform-with-rotation transform angle #key origin => transform

Arguments

transform
An instance of type <transform>.

angle
An instance of type <real>.

origin
An instance of type <point>. Default value: (0,0).

Values

transform
An instance of type <transform>.

Library

duim-geometry

Module

duim-geometry

Description

Creates a new transform by composing a given rotation with the transform transform. The order of composition is transform first, followed by the rotation transform.

The argument angle represents the angle by which to rotate, in radians.

The argument origin represents the point about which to rotate. The default is to rotate around (0,0).

Note that this function could be implemented by using make-rotation-transform and compose-transforms. It is provided because it is common to build up a transform as a series of simple transforms.

See also

compose-transforms, page 23

make-rotation-transform, page 39


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index