Commented angle utility function