Pythagoras’ theorem

Or drag the wheel round by hand.
Triangle
Drag the pink corner to change the angle.