Takes three side lengths defining a triangle and a static buffer, and outputs three new side lengths.
Takes four side lengths, a diagonal, and a static buffer, and outputs the four new side lengths.