So it's two arms joined together, both moving rotationally180degrees, of which the end point follows the mouse and is able to reach most points of the stage as a human arm would (upper arm, lower arm).
What I am trying to achieve is for the movement range of arm2 to overlaps arm1.
In the sketch above, the movement range is so that it never overlaps arm1.
So basically the arm2 and its movement range should be rotated 90degrees.
I attach a drawing to explain:
So A is the current sketch as on the link above, B is what I'm looking for - the arm2 to overlap arm1.
It feels like something relatively simple for someone with a sense of maths; but I just can't figure it out - I hope someone can help.