NORMALIZE
A direction made 1 long.
Syntax
NORMALIZE(d)
| Argument | Meaning |
|---|---|
| d | A direction (a position). |
Result
A position 1 from [0,0] in the same direction.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
NORMALIZE([3,4]) |
[0.6,0.8] |
P0+NORMALIZE(P2-P0)*10 |
[8.5749,5.145] |
Notes
P1+NORMALIZE(P2-P1)*d is d from P1 towards P2 (as ALONG gives). [0,0] stays [0,0].