Geogebra special segment construction

79 Views Asked by At

Could someone help me constructing such segment AB in Geogebra that would satisfy such properties:

  1. by moving the point A the segment moves as a solid body but does not rotate
  2. by moving the point B the segment changes its orientation and size
  3. the segment should be able to move like a solid body even if one of its edge points is attached to a line

I have already tried to use vectors but got the result that don't satisfy those properties above.

1

There are 1 best solutions below

0
On BEST ANSWER

Check out the red segment in this Geogebra demo I made. I think it does exactly what you want.

Click on point I or J with the settings menu open and look at the "On Update" tab under the "Scripting" tab. The script is SetValue(J, I+(x(L)-x(K),y(L)-y(K))) for point I, the one that moves the segment as a whole and SetValue(J, I+(x(L)-x(K),y(L)-y(K))) for point J that is free to move. Dragging point J alters a hidden segment (K,L) that acts as the memory.

There are some other segments in that demo with different scripts (Some under the "On drag" menu tab) just for demonstration purposes of what is possible.