Normalizes and returns a vector. Normalizing a vector is the process of making the vector "unit-length", or have a length of 1.
Math
normalize vector |
Name | Type | Required | Comments |
---|---|---|---|
vector | vector | yes | The vector to normalize. |
None
vector
Returns a vector of length 1.0.
// Normalize a vector vector $vec = << 30, 60, 90 >>; $vec = `normalize $vec`; print $vec; |