all trig precomputed