PEXTransformVectors Utility


Synopsis

 
   void PEXTransformVectors(
        PEXMatrix transform,
        int count,
        PEXVector *vectors,
        PEXVector *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 3D vectors to transform.

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

Returns

None.

Description

Invoke PEXTransformVectors to apply the upper 3x3 submatrix of the specified transformation matrix to the list of three-dimensional vectors. The transformation is applied:

   V' = T'xV

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

If the return array is the same as the input array, then this utility 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.