Improved performance of vec2 distance checking.