One fixed end
This activity belongs to the GeoGebra book Linkages.
If any of the points are fixed, the scripts become complicated, since limitations are added to the transmission of the movement. In this construction, point A is fixed. If now, for example, we move point D, something similar happens to what happens with a wave that is transmitted along a string with a fixed end:
- D transmits its new position to C,
- C moves and transmits to B,
- B moves but cannot transmit to A, since A is fixed; so "the wave bounces":
- A transmits its position to B,
- B transmits its position to C,
- C transmits its position to D, and finally
- D transmits its position to E.
The scripts used are detailed below (the "RunUpdateScript" command refers to the script of the corresponding object).
When moving B:
SetValue(B, Intersect(Ray(A,B), Circle(A,1)))
SetValue(C, Intersect(Ray(B,C), Circle(B,1)))
SetValue(D, Intersect(Ray(C,D), Circle(C,1)))
SetValue(E, Intersect(Ray(D,E), Circle(D,1)))
When moving C:
SetValue(B, Intersect(Ray(C,B), Circle(C,1)))
RunUpdateScript(B)
When moving D:
SetValue(C, Intersect(Ray(D,C), Circle(D,1)))
SetValue(B, Intersect(Ray(C,B), Circle(C,1)))
RunUpdateScript(B)
When moving E:
SetValue(D, Intersect(Ray(E,D), Circle(E,1)))
SetValue(C, Intersect(Ray(D,C), Circle(D,1)))
SetValue(B, Intersect(Ray(C,B), Circle(C,1)))
RunUpdateScript(B)
Author of the construction of GeoGebra: Rafael Losada