数值滑杆动画与几何变换演示
2020-11-18 01:20
本GeoGebra范例展示了数值滑杆在几何图形动画中的应用。通过线段、缩放、半圆、平移和旋转等几何命令,动态演示了图形随滑杆数值变化的变换过程。该范例结合了平面几何作图与参数化动画,有助于直观理解几何变换、比例缩放及图形构造的数学原理,适合用于探索几何图形的动态性质与极限概念。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.612.0" app="classic" platform="d" id="ab8417dc-2c8a-47ec-a7d8-a4655564d786" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="793" height="726" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="1.909205548549811" 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 51 | 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 , 538 | 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 , 66 || 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 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="3" size="766" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="200" tab="ALGEBRA" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1" size="390" window="100,100,700,550" />
<view id="70" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 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="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="12"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="766" height="554"/>
<coordSystem xZero="177.0789783576455" yZero="369.61120302226203" scale="75.54592185589604" yscale="75.54592185589603"/>
<evSettings axes="false" grid="false" 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="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="1"/>
</algebraView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2.0" max="2.0" step="1.0"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="numeric" label="k">
<value val="5.0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="5" absoluteScreenLocation="true" width="200.0" x="248.0" y="59.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate=""/>
</element>
<expression label="f" exp="f(x) = (abs(x - k) - abs(x - k + 1) + 1) / 2" />
<element type="function" label="f">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
</element>
<element type="point" label="A">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="-1.9071708282609399" y="-1.3553186520517253" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="point" label="B">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<coords x="7.199872716887148" y="-1.395029597742778" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="A" a1="B"/>
<output a0="g"/>
</command>
<element type="segment" label="g">
<show object="true" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0.03971094569105271" y="9.107043545148088" z="12.418681538971104"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Dilate">
<input a0="B" a1="1 / 5" a2="A"/>
<output a0="C"/>
</command>
<element type="point" label="C">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-0.08576211923132249" y="-1.363260841189936" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Dilate">
<input a0="B" a1="2 / 5" a2="A"/>
<output a0="D"/>
</command>
<element type="point" label="D">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="1.7356465897982953" y="-1.3712030303281464" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Dilate">
<input a0="B" a1="3 / 5" a2="A"/>
<output a0="E"/>
</command>
<element type="point" label="E">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.5570552988279127" y="-1.379145219466357" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Dilate">
<input a0="B" a1="4 / 5" a2="A"/>
<output a0="F"/>
</command>
<element type="point" label="F">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="5.378464007857531" y="-1.3870874086045675" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Semicircle">
<input a0="A" a1="C"/>
<output a0="C0"/>
</command>
<element type="conicpart" label="C0">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="2.01121585764426" A3="0.0" A4="0.9964664737461312" A5="1.3592897466208307"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Translate">
<input a0="C0" a1="(f(0) * Vector[A, F])"/>
<output a0="C1"/>
</command>
<element type="conicpart" label="C1">
<show object="true" label="true" ev="4"/>
<condition showObject="k > 0"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="40.65928425859264" A3="0.0" A4="-6.289168362372339" A5="1.3910585031736729"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Rotate">
<input a0="C0" a1="(f(1) * π)" a2="C"/>
<output a0="C2"/>
</command>
<element type="conicpart" label="C2">
<show object="true" label="true" ev="4"/>
<condition showObject="k > 1"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="-1.0" y0="1.2246467991473532E-16" z0="1.0" x1="-1.2246467991473532E-16" y1="-1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="1.7204546667896194" A3="0.0" A4="-0.8249422352834862" A5="1.3672319357590417"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Rotate">
<input a0="C2" a1="(f(2) * (-π))" a2="D"/>
<output a0="C3"/>
</command>
<element type="conicpart" label="C3">
<show object="true" label="true" ev="4"/>
<condition showObject="k > 2"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="8.064879003329468" A3="0.0" A4="-2.6463509443131046" A5="1.3751741248972509"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Dilate">
<input a0="C3" a1="(f(4) * 5)" a2="(D + E) / 2"/>
<output a0="C5"/>
</command>
<element type="conicpart" label="C5">
<show object="true" label="true" ev="4"/>
<condition showObject="k > 4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>
<matrix A0="1.2800000000000002" A1="1.2800000000000002" A2="-15.156067300933154" A3="0.0" A4="-3.3873292087207765" A5="1.760222879868478"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Rotate">
<input a0="C1" a1="(f(3) * (-π))" a2="F"/>
<output a0="C4"/>
</command>
<element type="conicpart" label="C4">
<show object="true" label="true" ev="4"/>
<condition showObject="k > 3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="-1.0" y0="-1.2246467991473532E-16" z0="1.0" x1="1.2246467991473532E-16" y1="-1.0" z1="1.0"/>
<matrix A0="1.0" A1="1.0" A2="21.044488867263812" A3="0.0" A4="-4.467759653342722" A5="1.3831163140354623"/>
<eqnStyle style="implicit"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
</construction>
</geogebra>