Oh, right. Maybe this then:
var angle = point1.angle_to_point(point2)
point2.rotation = angle
But that will only work if point3 is stationary (I believe directly to the right of point2 in local space). If point3 is also moving, then you will additionally have to take the position into account, which is more complex (but still possible with the same functions as above).