(x, y)
| 86 | * @param {Object} y |
| 87 | */ |
| 88 | var getDirection = function(x, y) { |
| 89 | if (x === y) { |
| 90 | return ''; |
| 91 | } |
| 92 | if (abs(x) >= abs(y)) { |
| 93 | return x > 0 ? 'left' : 'right'; |
| 94 | } |
| 95 | return y > 0 ? 'up' : 'down'; |
| 96 | }; |
| 97 | /** |
| 98 | * rotation |
| 99 | * @param {Object} start |
no outgoing calls
no test coverage detected