int PEXNormalizeVectors( int count, PEXVector *vectors, PEXVector *vectors_return )
Zero if successful; otherwise, one of the following:
Invoke PEXNormalizeVectors to normalize each vector in the specified list of three-dimensional vectors.
This utility returns an error if any vector in the list has a magnitude of zero. However, this utility still normalizes all of the non-zero vectors in the list.
If the return array is the same as the input array, then this utility overwrites the input values with the normalized values.
None.
For a list of miscellaneous transformation utilities, see Miscellaneous Transformation Utilities. For a list of related topics, see PEXlib Utilities.