Extended angle calculation to allow for reflex angles