CROSS
The cross product of two directions: which way one turns to the other.
Syntax
CROSS(a,b)
| Argument | Meaning |
|---|---|
| a, b | Directions (positions). |
Result
A number: positive when b is anticlockwise from a, negative when clockwise, 0 when they are in line.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
CROSS([1,0],[0,1]) |
1 |
CROSS([1,0],[0,-1]) |
-1 |
CROSS([2,0],[4,0]) |
0 |