added trig methods, toDeg and toRad