This strikes me as a question about compound angle joinery, that is, where two sloping parts meet. Seen flat from above, the corner is 90 degrees and the bevel on each part is 45 degrees. But seen from the sloping faces, the angles are different. Do a search online about compound angles and you can find the raw math, tables of common angles, and constructive methods to create the angles without the math.