DOT
The dot product of two directions: how far one goes along the other.
Syntax
DOT(a,b)
| Argument | Meaning |
|---|---|
| a, b | Directions (positions). |
Result
A number: 0 when they are at right angles.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
DOT([1,0],[0,1]) |
0 |
DOT([3,4],[1,0]) |
3 |
DOT(P2-P0,NORMALIZE(P1-P0)) |
500 |
Notes
DOT of a direction with a 1-long one is how far it goes that way.