Simplify angle function.