If you know your trigonometry it should be fairly easy.