Important: The information in this document is obsolete and should not be used for new development.
InvertMapping
You can use theInvertMapping
function 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
source
parameter.source
- A pointer to the mapping to be inverted.
- function result
- A pointer to the inverted mapping, which is also the target mapping.
DESCRIPTION
TheInvertMapping
function creates a copy of the source mapping, inverts it, and returns the inverted mapping in thetarget
parameter. If both thesource
andtarget
parameters point to the samegxMapping
structure, 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