Rotate geometry with two points

Hi all,

I want to rotate geometry with control points as shown in the drawing. I have lines for truss. So can I rotate whole truss at angle with respect to zaxis by control points? The bottom chord and points should remain at the same position but only the vertical portion of truss to be tilted at an angle.

Please let me know and thanks in advance

Got it by using the node called geometry.rotate with base plane. Thanks