artificialpicasso.mathutils.cosine_law_find_side#

artificialpicasso.mathutils.cosine_law_find_side(len1, len2, angle)[source]#

Given 2 side lengths of a triangle and the angle in between (in degrees), finds the length of the 3rd side.

Parameters:
  • len1 (float) – Length of the first side of a triangle

  • len2 (float) – Length of the second side of a triangle

  • angle (float) – Angle (in degrees) between len1 and len2

Returns:

Length of the 3rd side of the triangle given

Return type:

float