Use absolute value of dot product to choose reference edge
Use absolute value of dot product to choose reference edge

Otherwise the reference swaps as an edge rotates from <0 to >0

zerowidth/asteroids,zerowidth/asteroids,zerowidth/asteroids