Just zoom the surface if the angle is divisible by 360

This is an optimisation I had in my code. I think it makes sense to have it in Emscripten, since it can save some memory. Also added a test for the `angle % 360 === 0` case.