Rotation of a Line
2018-12-12 02:30
This applet demonstrates the rotation transformation of a line. By defining segments, vectors, and a rotation angle, it uses the Rotate command to rotate a segment around a point, generating the rotated segment and endpoint coordinates. This dynamic model visually illustrates the effects of rotation on a line's position and coordinates, aiding in understanding plane geometric transformations.
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.513.0" app="classic" platform="offline" id="2D24D153-09D2-4C3A-901A-284DBE90198F" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1266" height="621" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.0924170616113744" orientation="1" />
</panes>
<views>
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 | 1009 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1,1" size="429" window="100,100,700,550" />
<view id="1" visible="true" inframe="false" stylebar="false" location="1" size="1141" window="100,100,600,400" />
<view id="2" visible="true" inframe="false" stylebar="true" location="3" size="117" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="300" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="300" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="128" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="900" window="50,50,500,500" />
<view id="43" visible="false" inframe="false" stylebar="false" location="1" size="450" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="2"/>
<font size="16"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="1140" height="568"/>
<coordSystem xZero="264.64107541000254" yZero="233.70391372914594" scale="26.50640419594212" yscale="26.506404195942125"/>
<evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="3"/>
</algebraView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="3" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="angle" label="α">
<angleStyle val="3"/>
<value val="0"/>
<slider min="0°" max="360°" absoluteScreenLocation="true" width="180" x="517" y="88" fixed="true" horizontal="true" showAlgebra="true"/>
<show object="true" label="true" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<lineStyle thickness="10" type="0" typeHidden="2" opacity="178"/>
<arcSize val="30"/>
<animation step="10°" speed="0.75" type="0" playing="false"/>
</element>
<element type="point" label="A">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<coords x="2" y="2" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<expression label="B" exp="(5, 4)" type="point"/>
<element type="point" label="B">
<show object="true" label="true"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<coords x="5" y="4" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Rotate">
<input a0="A" a1="(-α)"/>
<output a0="A_{1}"/>
</command>
<element type="point" label="A_{1}">
<show object="true" label="true" ev="4"/>
<condition showObject="a ≠ 0"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="2" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Rotate">
<input a0="B" a1="(-α)"/>
<output a0="B_{1}"/>
</command>
<element type="point" label="B_{1}">
<show object="true" label="true" ev="4"/>
<condition showObject="a ≠ 0"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5" y="4" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="A" a1="B"/>
<output a0="f"/>
</command>
<element type="segment" label="f">
<show object="true" label="false"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-2" y="3" z="-2"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="A_{1}" a1="B_{1}"/>
<output a0="g"/>
</command>
<element type="segment" label="g">
<show object="true" label="false" ev="4"/>
<condition showObject="a ≠ 0"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-2" y="3" z="-2"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Rotate">
<input a0="A" a1="(-α)"/>
<output a0="A_{2}"/>
</command>
<element type="point" label="A_{2}">
<show object="false" label="true"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="2" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Rotate">
<input a0="B" a1="(-α)"/>
<output a0="B_{2}"/>
</command>
<element type="point" label="B_{2}">
<show object="false" label="true"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5" y="4" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="boolean" label="a">
<value val="false"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="516" y="115"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="Show answer"/>
</element>
<expression label="x_1" exp="0"/>
<element type="numeric" label="x_1">
<value val="0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelOffset x="-7" y="1"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="48" y="47" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="x_2=0
"/>
<caption val="A_x"/>
</element>
<expression label="x_2" exp="0"/>
<element type="numeric" label="x_2">
<value val="0"/>
<show object="true" label="true"/>
<condition showObject="x_1 ≟ 1"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="49" y="88" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="x_3=0
"/>
<caption val="A_y"/>
</element>
<expression label="y_1" exp="0"/>
<element type="numeric" label="y_1">
<value val="0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelOffset x="-17" y="13"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="292" y="44" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="y_2=0
"/>
<caption val="B_x"/>
</element>
<expression label="y_2" exp="0"/>
<element type="numeric" label="y_2">
<value val="0"/>
<show object="true" label="true"/>
<condition showObject="y_1 ≟ 1"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="294" y="88" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="y_3=0
"/>
<caption val="B_y"/>
</element>
<expression label="Q_{1}" exp="((x(A) * x_1), 0)" type="point" />
<element type="point" label="Q_{1}">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<expression label="Q_{2}" exp="(x(A), (y(A) * x_2))" type="point" />
<element type="point" label="Q_{2}">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<expression label="Q_{3}" exp="((x(B) * y_1), 0)" type="point" />
<element type="point" label="Q_{3}">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<expression label="Q_{4}" exp="(x(B), (y(B) * y_2))" type="point" />
<element type="point" label="Q_{4}">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Vector">
<input a0="(0, 0)" a1="Q_{1}"/>
<output a0="P_{1}"/>
</command>
<element type="vector" label="P_{1}">
<show object="false" label="false" ev="4"/>
<condition showObject="x_1 > 0"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint x="0" y="0" z="1"/>
</element>
<command name="Vector">
<input a0="Q_{1}" a1="Q_{2}"/>
<output a0="P_{2}"/>
</command>
<element type="vector" label="P_{2}">
<show object="false" label="false" ev="4"/>
<condition showObject="x_1 ≟ 1"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="Q_{1}"/>
</element>
<command name="Vector">
<input a0="(0, 0)" a1="Q_{3}"/>
<output a0="P_{3}"/>
</command>
<element type="vector" label="P_{3}">
<show object="true" label="false" ev="4"/>
<condition showObject="y_1 ≟ 1"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint x="0" y="0" z="1"/>
</element>
<command name="Vector">
<input a0="Q_{3}" a1="Q_{4}"/>
<output a0="P_{4}"/>
</command>
<element type="vector" label="P_{4}">
<show object="true" label="false" ev="4"/>
<condition showObject="y_1 ≟ 1"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="Q_{3}"/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="519" y="15"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="x_1=0
y_1=0
"/>
<font serif="false" sizeM="2" size="16" style="0"/>
<caption val="Reset"/>
</element>
<expression label="x_3" exp="0"/>
<element type="numeric" label="x_3">
<value val="0"/>
<show object="true" label="true"/>
<condition showObject="x_2 ≟ 1"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="52" y="128" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<caption val="A_α"/>
</element>
<expression label="y_3" exp="0"/>
<element type="numeric" label="y_3">
<value val="0"/>
<show object="true" label="true"/>
<condition showObject="y_2 ≟ 1"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="3"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="295" y="125" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<caption val="B_α"/>
</element>
<command name="Rotate">
<input a0="P_{1}" a1="((-x_3) * α)"/>
<output a0="P'_{1}"/>
</command>
<element type="vector" label="P'_{1}">
<show object="true" label="false"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint x="0" y="0" z="1"/>
</element>
<command name="Rotate">
<input a0="Q_{1}" a1="((-x_3) * α)"/>
<output a0="Q'_{1}"/>
</command>
<element type="point" label="Q'_{1}">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Rotate">
<input a0="Q_{2}" a1="((-x_3) * α)"/>
<output a0="Q'_{2}"/>
</command>
<element type="point" label="Q'_{2}">
<show object="true" label="false" ev="4"/>
<condition showObject="x_2 ≟ 1"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Vector">
<input a0="Q'_{1}" a1="Q'_{2}"/>
<output a0="P'_{2}"/>
</command>
<element type="vector" label="P'_{2}">
<show object="true" label="false" ev="4"/>
<condition showObject="x_1 ≟ 1"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="Q'_{1}"/>
</element>
<command name="Rotate">
<input a0="P_{3}" a1="((-y_3) * α)"/>
<output a0="P'_{3}"/>
</command>
<element type="vector" label="P'_{3}">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint x="0" y="0" z="1"/>
</element>
<command name="Rotate">
<input a0="Q_{3}" a1="((-y_3) * α)"/>
<output a0="Q'_{3}"/>
</command>
<element type="point" label="Q'_{3}">
<show object="false" label="false"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Rotate">
<input a0="Q_{4}" a1="((-y_3) * α)"/>
<output a0="Q'_{4}"/>
</command>
<element type="point" label="Q'_{4}">
<show object="true" label="false" ev="4"/>
<condition showObject="y_2 ≟ 1"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="Vector">
<input a0="Q'_{3}" a1="Q'_{4}"/>
<output a0="P'_{4}"/>
</command>
<element type="vector" label="P'_{4}">
<show object="true" label="false" ev="4"/>
<condition showObject="y_1 ≟ 1"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<algebra labelVisible="false"/> <coords x="5" y="0" z="0"/>
<lineStyle thickness="5" type="15" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="Q'_{3}"/>
</element>
</construction>
</geogebra>