format and normalize direction angles