The angle between two sides determines the third side. A right angle is one special case.
Place one side on the x-axis. The other endpoint is (a cos C, a sin C). The squared distance to (b, 0) simplifies to a² + b² − 2ab cos C.
The angle C must be the angle between sides a and b.