A real world problem.

A sailing boat experiences rotations in all 3 axis when sailing (heel, yaw, pitch). In this state, what is the angle of attack of the keel?

In mathematical terms:

Express the angle (in the XY plane) between the X axis an a surface as a function of the surface's angle to XY, XZ and YZ planes.

Many thanks!