int PEXNPCToXCTransform2D( PEXNPCSubVolume *npc_sub_volume, PEXDeviceCoord2D *viewport, unsigned int window_height, PEXMatrix3x3 transform_return )
Zero if successful; otherwise, one of the following:
Invoke PEXNPCToXCTransform2D to compute the two- dimensional transformation matrix to map a two-dimensional NPC point to a 2D drawable coordinate (XC), using the specified NPC subvolume, DC viewport, and drawable height.
The returned transformation matrix first applies the subvolume-to-viewport transformation, then transforms the resulting points to drawable coordinates.
When specifying NPC and DC, the x, y and z limits must be as follows:
xmin < xmax, ymin < ymax, zmin <= zmax
None.
For a list of miscellaneous transformation utilities, see Miscellaneous Transformation Utilities. For a list of related topics, see PEXlib Utilities.