Make hue sortin 3x faster by avoiding atan2() calls.