Next Previous Up Top Contents Index

2.3 DUIM-Geometry Module

compose-scaling-with-transform

Generic function

Summary

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

Signature

compose-scaling-with-transform 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 the transform transform with the given scaling. The order of composition is that the scaling transform is applied first, followed by the argument 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

make-scaling-transform, page 40


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index