Application of angles and trig functions