How to create an interactive rigid rotor

I’m trying to create an interactive rigid rotor in Desmos. Effectively, what this would be is a line segment that can rotate about either of it’s endpoints freely. I’ve tried to implement this using {\polygon} but I don’t know how or if I can apply a constraint on the length of the line that connects the two points.

something like this is probably what you’re looking for.
here i’ve opted to make the rotor arms of different radius: Untitled Graph

So I was able to do that sort of thing already. I guess rigid rotor probably wasn’t the best way to describe what I’m trying. What I’d like to do is have one end of the rod rotate about the other when interacting with it. So if I have the line PQ, made of points P and Q, then I want the rod to rotate about A if I interact with P and also I want the rod to rotate about P if I interact with Q.

Fun challenge. I’m reasonably confident it’s only possible with actions.

Not the easiest interaction to work with!

Wonderful, though this is indeed severals levels of Desmos above what I’ve been able to do, but it’s fantastic that it can be done. Thank you!