[<< wikibooks] Guide to Game Development/Theory/Mathematics/Trigonometry/Trigonometry used with non-right angles
For non-right-angled triangles, there are two rules that you can use: