While I'd agree with the previous replies - lay the brace against the frame and mark off the actual space it's going in - for reference, the maths to work out the angles is as follows:
The hypotenuse measurement you've already come up with, via Pythagoras: H = the square root of (a squared + b squared). This should be the centre line of the brace, with two angles cut at each end.
All the blue angles are the same angle as each other, and all the green angles are the same angle as each other, so to work out all of them we'll take the top-right triangle, formed by a right-angle in the top corner, and the angles marked 1 and 2.
The three basic trigonometric formulae are:
- sin(angle) = opposite/hypotenuse
- tan(angle) = adjacent/opposite
- cos(angle) = adjacent/hypotenuse
where the adjacent side is the one of side A or B which meets the angle we're calculating at the time, and the opposite is the other one.
You can set the Windows calc to scientific mode by going into the View menu and selecting 'Scientific'; from here you can use the 'inverse' of the sin, cos or tan functions to work out the angle required by clicking 'Inv' and then the button that used to say 'sin', 'cos' or 'tan' but now says 'sin-1', 'cos-1' or 'tan-1'. (It's actually written as "tan raised to the power of negative 1", but really it's just the inverse-tan function. Be careful not to get confused between tan and tanh, which are different functions.)
So to work out the angle 1 (and all other blue angles) from the length of sides A and B:
- you have the adjacent and the opposite, so we can use tan. You can usually get away with just using tan all the time, when you have measurements for all three sides of the triangle you can just use the right-angled ones.
- divide the adjacent by the opposite; A is the adjacent side, B is the opposite side, so divide length A by length B. This gets us the value of tan(angle), so now we need to reverse the tan function.
- do the inverse-tan, by hitting 'Inv' on Windows Calc and then hitting 'tan-1'
- the answer is the number of degrees for angle 1.
Working out angle 2 (and all other green angles) would be just the same, just dividing B by A instead of the other way around.