This function normalizes the vector, and returns the result as a pipe-bar delimited list.
VectorNormalize([Vector])
Where:
Vector is a pipe-bar delimited list representing the vector (X|Y|Z).
Rule | Result |
---|---|
VectorNormalize("2|5|8") | Will return the normalized value of the given vector, 0.21|0.52|0.83 (values have been rounded for clarity). |
Due to floating point precision, some calculations may not be as precise as expected.
This can be avoided by following the advice in the topic Info: Floating Point Precision.