Important: The information in this document is obsolete and should not be used for new development.
InvertMapping
You can use theInvertMappingfunction to create an inverted copy of a mapping.
gxMapping *InvertMapping(gxMapping *target, const gxMapping *source);
target- A pointer to a mapping structure. On return, contains the inverse of the mapping specified in the
sourceparameter.source- A pointer to the mapping to be inverted.
- function result
- A pointer to the inverted mapping, which is also the target mapping.
DESCRIPTION
TheInvertMappingfunction creates a copy of the source mapping, inverts it, and returns the inverted mapping in thetargetparameter. If both thesourceandtargetparameters point to the samegxMappingstructure, that mapping will be replaced by its inverse. If the mapping is not invertible, the function returns nil and the target is not changed.ERRORS, WARNINGS, AND NOTICES
Errors mapping_is_nil