Solving for angles using inverse sine