Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

compose-transform-with-scaling

Generic function

Summary

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

Signature

compose-transform-with-scaling transform scale-x scale-y #key origin => transform

Arguments

transform
An instance of type <transform>.

scale-x
An instance of type <real>.

scale-y
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 scaling with the transform transform. The order of composition is transform first, followed by the scaling transform.

The argument scale-x represents the scaling factor for the x direction.

The argument scale-y represents the scaling factor for the y direction.

The argument origin represents the point around which scaling is performed. The default is to scale around the origin.

Note that this function could be implemented by using make-scaling-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-scaling-transform, page 40


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index