Four-bar linkage with scripts

[color=#999999][color=#999999][color=#999999]This activity belongs to the [i]GeoGebra book[/i] [url=https://www.geogebra.org/m/h3gbmymu]Linkages[/url].[/color][/color][/color][br][br]In the following construction we have applied scripts to [url=https://www.geogebra.org/m/h3gbmymu#material/fxv3jbg4]our rhombus[/url]. Boxes E' and F', when activated, show the isomeric positions of E and F, respectively. We have differentiated the stroke style of the four bars to better visualize the cases where two bars overlap.
The scripts used are detailed below.[br][br]By activating or deactivating the box E' (governed by the boolean e):[br] SetValue(E, If(e, U, F-(1,0)))[br][br]By activating or deactivating the box F' (governed by the boolean f):[br] SetValue(F, If(f, O, E+(1,0)))[br][br]By moving point E:[br] SetValue(E, Intersect(Ray(O,E), Circle(O,1)))[br] SetValue(F, If(f, O, E+(1,0)))[br] SetValue(e, E==U)[br][br]By moving point F:[br] SetValue(F, Intersect(Ray(U,F), Circle(U,1)))[br] SetValue(E, If(e, U, F-(1,0)))[br] SetValue(f, F==O)
[color=#999999]Author of the construction of GeoGebra: [color=#999999][url=https://www.geogebra.org/u/rafael]Rafael Losada[/url][/color][/color]

Information: Four-bar linkage with scripts