Rotating Bar with Multiple Childs - how to find points of attachments

Hi fellow gamers,

I am rotating a horizontal bar from one of its axis called pt x. This pt x is one one end of the bar. On the other end of the bar is two objects that needs to be attached at specified places on the bar.

As I rotate the bar, the attached objects on the other end of the bar should also be repositioned to the new location. What are the calculations needed to make get the coordinate positions (x,y) of where to attach the objects while the Bar is rotating around its axis X.


|
| X
|_____________A______B

Question? What would be the math formula needed to make this work. Sin,Cos, Matrix?

Thanks in advance for suggestions.