artificialpicasso.mathutils.cosine_law#
- artificialpicasso.mathutils.cosine_law(*, a=None, b=None, c=None, C=None)[source]#
Solves a triangle using cosine law.
If given all 3 side lengths of a triangle, returns the angle opposite to side c. If given the lengths of 2 sides of a trianle and the angle opposite to side c, returns the length of the missing side.
- Parameters:
- Returns:
The value of the missing argument
- Return type: