Revert commit b77479f
commited
commit
1889320a22e3583fec0b6f9dbff45d6f477e298b
... | ... | @@ -1,3 +1,12 @@ |
1 | 1 | [[/uploads/Normalize1.png|width=336px,alt=Normalize]] |
2 | 2 | |
3 | Outputs a vector with the same direction as the input vector, but a length of 1. (Also known as a *unit vector*.) |
|
3 | Outputs a vector with the same direction as the input vector, but a length of 1. (Also known as a *unit vector*.). You can learn more about normalizing vector [here](https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations/programming-vectors/a/vector-magnitude-normalization) |
|
4 | ## Input |
|
5 | - Vector: The target vector |
|
6 | ||
7 | ## Output |
|
8 | - Normalize: Outputs the normalized vector |
|
9 | ||
10 | ## Example |
|
11 | [[/uploads/normalize.jpg]] |
|
12 | To explain what is going on here, let's take a look at the X-axis of the vector. The normalizer made the X-axis have a length of 1 (by dividing it with itself). Meanwhile, the Y-Axis of the vector outputs 0.01 (by dividing it with the X-axis's value). What about the Z-Axis? Since the Z-axis's value is 0, there is no reason for the normalizer to change it's value. |