Fun with trig.