int PEXNormalizeVectors2D(
int count,
PEXVector2D *vectors,
PEXVector2D *vectors_return
)
Zero if successful; otherwise, one of the following:
Invoke PEXNormalizeVectors2D to normalize each vector in the specified list of two-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.