Controlling a free point using a slider

holyfssssd shared this question 2 months ago
Answered

This is a bit of a strange question.

https://www.geogebra.org/cl...

Basically, I have this setup where you can rotate the circle with a slider. But I also have a free-floating point X. Is there a way to get point X to rotate along with the circle when I drag the slider, while still having point X be a free-floating point?

I have a feeling this might be possible with some scripting, but I'm not exactly sure how to do it.

Best Answer
photo

A very simple solution.

rotate also the circle c with alpha: c: Rotate(Circle(A, B), α, A)

you can nothing see, but the circle and his area inside turn relay.

Now define the point X as: X = PointIn(c)

------------------------------thats all

You can move X inside the circle c and X turn with the area of c and the area c turn with alpa

If X can be also outside c, then create a not visible, very big rotated circle and associate X with the area of this big circle.

Comments (2)

photo
1

A very simple solution.

rotate also the circle c with alpha: c: Rotate(Circle(A, B), α, A)

you can nothing see, but the circle and his area inside turn relay.

Now define the point X as: X = PointIn(c)

------------------------------thats all

You can move X inside the circle c and X turn with the area of c and the area c turn with alpa

If X can be also outside c, then create a not visible, very big rotated circle and associate X with the area of this big circle.

photo
1

Thank you very much, that's perfect! A very simple and elegant solution!

photo
© 2020 International GeoGebra Institute