AST_MAPREGION

Transform a Region into a new Frame using a given Mapping

Description:

This function returns a pointer to a new Region which corresponds to supplied Region described by some other specified coordinate system. A Mapping is supplied which transforms positions between the old and new coordinate systems. The new Region may not be of the same class as the original region.

Invocation

RESULT = AST_MAPREGION( THIS, MAP, FRAME, STATUS )

Arguments

THIS = INTEGER (Given)
Pointer to the Region.
MAP = INTEGER (Given)
Pointer to a Mapping which transforms positions from the coordinate system represented by the supplied Region to the coordinate system specified by FRAME. The supplied Mapping should define both forward and inverse transformations, and these transformations should form a genuine inverse pair. That is, transforming a position using the forward transformation and then using the inverse transformation should produce the original input position. Some Mapping classes (such as PermMap, MathMap, SphMap) can result in Mappings for which this is not true.
FRAME = INTEGER (Given)
Pointer to a Frame describing the coordinate system in which the new Region is required.
STATUS = INTEGER (Given and Returned)
The global status.

Returned Value

AST_MAPREGION = INTEGER
A pointer to a new Region. This Region will represent the area within the coordinate system specified by FRAME which corresponds to the supplied Region.

Notes: