Used SQRT2 and SQRT1_2 to calculate the same value, harmless but a little confusing, set once and check instead.