Source: https://mathematiques.lmrl.lu/Cours/Cours_4e/Trigonometrie_triangle_rectangle.pdf