made mode settings affect the output of all the trig functions
engine version 1.0.5