artificialpicasso.mathutils#

Functions

between(b1, b2, val)

Returns true if val is a number between b1 and b2 (inclusive).

cosine_law(*[, a, b, c, C])

Solves a triangle using cosine law.

cosine_law_find_angle(a, b, c)

Given 3 side lengths of a triangle, find the angle opposite to one of the sides (side c).

cosine_law_find_side(len1, len2, angle)

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