int PEXTransformPoints2D( PEXMatrix3x3 transform, int count, PEXCoord2D *points, PEXCoord2D *points_return )
Zero if successful; otherwise, one of the following:
Invoke PEXTransformPoints2D to apply the specified homogeneous transformation matrix to the list of points.
When applying the transformation, the points are first converted to homogeneous points by assigning them a homogeneous coordinate of 1. The transformation is then applied:
P' = TxP
Where P is the point, treated as a column vector, and T is the transformation matrix. The points are then mapped to 2D by dividing their first three coordinates by the computed homogeneous coordinate.
If the function returns unsuccessfully, then all points other than those with a homogeneous coordinate of zero are transformed and returned.
If the return array is the same as the input array, then this utility overwrites the input values with the transformed values.
None.
For a list of miscellaneous transformation utilities, see Miscellaneous Transformation Utilities. For a list of related topics, see PEXlib Utilities.