Source: https://www.automaths.com/3/cours/3_Trigonometrie_C.pdf