Rotating lines

Hello, I’m facing a challenge while modelling this motion in Grasshopper. I have two main lines, and a third line is drawn between their endpoints. As the main lines move, the length of the connecting line changes. I believe I need to find a formula or ratio to solve this. The movement of the first line works fine, but the second line needs to move differently, with a different angular behaviour.

ooooo.gh (18.5 KB)

I will be grateful to see your suggestions.

it took me a while, to understand that you are working on panels what are folding. Is that correct?
Those panels cannot change in size when moving.

Because you have more panels together (3 in this case) these have a behavior like a chain. The first moves, what makes the second move, what makes the third move.

three directions I would search in:

  1. because the panels should not change in size, the endpoints are like the points on a circle. the center does not move, but the connecting point with next panel moves on that circle.
    Writing this down I realize myself, that when moving the plane of that circle also moves, so maybe think of this as spheres touching eachother. But could be a “dead end”
  2. Anemone or Kangeroo. Anemone, because there are chains of actions. No idea how to construct this, but something iterative is going on.
    Kangeroo2. I have little experience there, but did some test with ropes moving around, this has simular aspects.

Regards, Eef

just an idea
….that does not work in all cases, i know.

rotateToConstantLength.gh (17.9 KB)