The constants in here trigger compile warnings? They probably should have a f trailing (so 0.1f). If not done this way, they are in many cases instantiated as doubles and then converted to floats at runtime (unnecessary operations).