Changed calculus of head coordinates to return angles