PEXTransformVectors2D Utility


Synopsis

 
   void PEXTransformVectors2D(
        PEXMatrix3x3 transform,
        int count,
        PEXVector2D *vectors,
        PEXVector2D *vectors_return
   )
 

Arguments

transform
The transformation matrix to apply to the vectors.

count
The number of vectors to transform.

vectors
A pointer to the array of 2D vectors to transform.

vectors_return A pointer to an array in which to store the transformed vectors.

Returns

None.

Description

Invoke PEXTransformVectors2D to apply the upper 2x2 submatrix of the specified transformation matrix to the list of two-dimensional vectors. The transformation is applied:

    V' = T'xV

Where V is the vector, treated as a column vector, and T' is the upper 2x2 sub-matrix of transform.

If the return array is the same as the input array, then this function overwrites the input values with the transformed values.

Errors

None.

See Also

For a list of miscellaneous transformation utilities, see Miscellaneous Transformation Utilities. For a list of related topics, see PEXlib Utilities.