(pos)
| 956 | } |
| 957 | |
| 958 | function simplifyPos (pos) { |
| 959 | // Go from { x: 6, y: 6 } as middle of lower left square to { x: 0, y: 0 } |
| 960 | // Round it in case some of the existing source level positions are slightly off |
| 961 | return new Vector(Math.round((pos.x - 6) / 8), Math.round((pos.y - 6) / 8)) |
| 962 | } |
| 963 | |
| 964 | function complexifyPos (pos) { |
| 965 | // Go from { x: 0, y: 0 } as middle of lower left square to { x: 6, y: 6 } |
no outgoing calls
no test coverage detected