四边形与向量的动态几何构造
2021-07-30 15:33
本GeoGebra范例演示了使用向量、多边形和动态坐标进行几何构造的方法。通过Intersect、Segment、Point、Sequence、DynamicCoordinates、Polygon、Vector等命令,构建包含多个关键点(A至G)和向量(u、v及其副本)的几何图形。范例涉及条件判断(If)与序列生成,展示四边形相关的几何性质与向量运算,适用于解析几何与几何作图的教学演示。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.656.0" app="classic" platform="w" id="762933da-685b-4110-92d2-98d23790006b" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="800" height="600" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="NaN" orientation="1" />
</panes>
<views>
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="true" location="1,1" size="200" window="0,0,400,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="0" window="0,0,400,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="266" tab="ALGEBRA" window="-11,-11,2902,1585" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 | 1011 || 1008 1009 || 6" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="16" visible="false" inframe="false" stylebar="false" location="0" size="227" window="915,562,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="true" location="1" size="150" 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="4097" visible="false" inframe="false" stylebar="true" location="1" size="150" window="499,353,1066,951" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<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" size="300" window="50,50,500,500" />
</views>
<toolbar show="false" 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="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="24"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="924" height="488"/>
<coordSystem xZero="276.42727272727245" yZero="230.26363636363607" scale="45.45454545454542" yscale="45.45454545454542"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="1" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<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"/>
<grid distX="1" distY="1" distTheta="0.5235987755982988"/>
</euclidianView>
<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" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="point" label="D">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-25" y="24"/>
<labelMode val="3"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-5" y="-3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
<caption val="A"/>
</element>
<expression label="E" exp="D + (6, 0)" type="point" />
<element type="point" label="E">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="4" y="21"/>
<labelMode val="3"/>
<selectionAllowed val="false"/>
<coords x="1" y="-3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
<caption val="B"/>
</element>
<command name="Intersect">
<input a0="Circle[D, 4]" a1="Circle[E, 5]" a2="1"/>
<output a0="F"/>
</command>
<element type="point" label="F">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-14" y="-9"/>
<labelMode val="3"/>
<selectionAllowed val="false"/>
<coords x="-2.75" y="0.30718913883073823" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
<caption val="C"/>
</element>
<command name="Segment">
<input a0="F" a1="D"/>
<output a0="k"/>
</command>
<element type="segment" label="k">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-4" y="3"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="3.307189138830738" y="-2.25" z="9.78594569415369"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="E" a1="F"/>
<output a0="j"/>
</command>
<element type="segment" label="j">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-11" y="4"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="-3.307189138830738" y="-3.75" z="-7.942810861169262"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="point" label="A">
<show object="true" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="-29" y="30"/>
<labelMode val="3"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue(C1,A+uCopy)
SetValue(C2,B+vCopy)"/>
<coords x="4" y="-3" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<caption val="P"/>
</element>
<command name="Point">
<input a0="Sequence[A + (i, 0), i, 1, 20, 1]"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="6" y="32"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue(C2,B+vCopy)
SetValue(C1,A+uCopy)"/>
<coords x="12" y="-3" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<caption val="Q"/>
</element>
<element type="point" label="C1">
<show object="false" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="6.1726" y="1.5018" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Sequence">
<input a0="A + (i * UnitVector[Segment[A, C1]])" a1="i" a2="1" a3="20" a4="1"/>
<output a0="VPoints" randomResult="{(4.434638289868149, -2.099394893984888), (4.869276579736297, -1.1987897879697762), (5.303914869604446, -0.2981846819546643), (5.738553159472595, 0.6024204240604476), (6.173191449340743, 1.5030255300755595), (6.607829739208893, 2.4036306360906714), (7.042468029077042, 3.3042357421057833), (7.47710631894519, 4.204840848120895), (7.911744608813339, 5.105445954136007), (8.346382898681487, 6.006051060151119), (8.781021188549637, 6.906656166166231), (9.215659478417786, 7.807261272181343), (9.650297768285935, 8.707866378196455), (10.084936058154083, 9.608471484211567), (10.519574348022232, 10.509076590226679), (10.95421263789038, 11.40968169624179), (11.38885092775853, 12.310286802256902), (11.823489217626678, 13.210891908272014), (12.258127507494827, 14.111497014287124), (12.692765797362975, 15.012102120302238)}"/>
</command>
<element type="list" label="VPoints">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<element type="vector" label="uCopy">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<coords x="2.1726" y="4.5018" z="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<coordStyle style="cartesian"/>
<startPoint exp="A"/>
</element>
<command name="DynamicCoordinates">
<input a0="C1" a1="x(ClosestPoint[VPoints, C1])" a2="y(ClosestPoint[VPoints, C1])"/>
<output a0="C"/>
</command>
<element type="point" label="C">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="2" y="1"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue(C, If(Distance(C,G)<d, G, If(Distance(C,G')<d, G', C)))"/>
<coords x="6.173191449340743" y="1.5030255300755595" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
<caption val="R"/>
</element>
<command name="Segment">
<input a0="A" a1="C"/>
<output a0="f"/>
</command>
<element type="segment" label="f">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-29" y="-16"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="-4.5030255300755595" y="2.1731914493407434" z="24.53167646832447"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="A" a1="B"/>
<output a0="g"/>
</command>
<element type="segment" label="g">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-10" y="10"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="0" y="8" z="24"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="point" label="C2">
<show object="false" label="true" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="9" y="3" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="vector" label="vCopy">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<coords x="-3" y="6" z="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<coordStyle style="cartesian"/>
<startPoint exp="B"/>
</element>
<command name="Sequence">
<input a0="B + (i * UnitVector[Segment[B, C2]])" a1="i" a2="1" a3="20" a4="1"/>
<output a0="UPoints" randomResult="{(11.552786404500042, -2.1055728090000843), (11.105572809000083, -1.2111456180001683), (10.658359213500127, -0.3167184270002523), (10.211145618000169, 0.5777087639996634), (9.76393202250021, 1.4721359549995796), (9.316718427000252, 2.3665631459994954), (8.869504831500294, 3.260990336999411), (8.422291236000337, 4.155417527999327), (7.975077640500379, 5.049844718999243), (7.52786404500042, 5.944271909999159), (7.080650449500463, 6.838699100999074), (6.633436854000505, 7.733126291998991), (6.186223258500547, 8.627553482998906), (5.739009663000589, 9.521980673998822), (5.2917960675006315, 10.416407864998737), (4.844582472000673, 11.310835055998654), (4.397368876500715, 12.20526224699857), (3.9501552810007574, 13.099689437998485), (3.502941685500799, 13.994116628998402), (3.055728090000841, 14.888543819998318)}"/>
</command>
<element type="list" label="UPoints">
<show object="false" label="true"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="DynamicCoordinates">
<input a0="C2" a1="x(ClosestPoint[UPoints, C2])" a2="y(ClosestPoint[UPoints, C2])"/>
<output a0="C'"/>
</command>
<element type="point" label="C'">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="2" y="1"/>
<labelMode val="3"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue(C', If(Distance(C',G)<d, G, If(Distance(C',G')<d, G', C')))"/>
<coords x="8.869504831500294" y="3.260990336999411" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
<caption val="R"/>
</element>
<command name="Segment">
<input a0="C'" a1="B"/>
<output a0="h"/>
</command>
<element type="segment" label="h">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="10" y="-21"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="6.260990336999411" y="3.1304951684997064" z="-65.74039853849382"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Intersect">
<input a0="Circle[A, f]" a1="Circle[B, h]" a2="1"/>
<output a0="G"/>
</command>
<element type="point" label="G">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="6.5" y="1.3301270189221932" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<expression label="d" exp="0.3"/>
<element type="numeric" label="d">
<value val="0.3"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<animation speed="1" type="0" playing="false"/>
</element>
<command name="Polygon">
<input a0="{A, B, G}"/>
<output a0="t1"/>
</command>
<element type="polygon" label="t1">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<condition showObject="closed1 ≠ 0"/>
<objColor r="255" g="215" b="0" alpha="0.3100000023841858"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
<command name="If">
<input a0="C ≟ G ∧ C' ≟ G" a1="true" a2="false"/>
<output a0="closed1"/>
</command>
<element type="boolean" label="closed1">
<value val="false"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<command name="Vector">
<input a0="B" a1="C2"/>
<output a0="v"/>
</command>
<element type="vector" label="v">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript onUpdate="SetValue(vCopy, v)"/>
<coords x="-3" y="6" z="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<coordStyle style="cartesian"/>
<startPoint exp="B"/>
</element>
<command name="Vector">
<input a0="A" a1="C1"/>
<output a0="u"/>
</command>
<element type="vector" label="u">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<ggbscript onUpdate="SetValue(uCopy, u)"/>
<coords x="2.1726" y="4.5018" z="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<coordStyle style="cartesian"/>
<startPoint exp="A"/>
</element>
<expression label="text1" exp=""拖拉紅點,構作一個滿足以下條件的著色的△PQR:
PQ = AB, QR = BC, RP = CA。
△PQR 是否必定全等於 △ABC? ""/>
<element type="text" label="text1">
<show object="true" label="true" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<absoluteScreenLocation x="15" y="37"/>
</element>
<command name="Segment">
<input a0="D" a1="E"/>
<output a0="i"/>
</command>
<element type="segment" label="i">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="-10" y="10"/>
<labelMode val="2"/>
<selectionAllowed val="false"/>
<coords x="0" y="6" z="18"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Polygon">
<input a0="D" a1="E" a2="F"/>
<output a0="t3" a1="l" a2="m" a3="n"/>
</command>
<element type="polygon" label="t3">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="215" b="0" alpha="0.25"/>
<layer val="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="l">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="215" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0" y="6" z="18"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="m">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="215" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-3.307189138830738" y="-3.75" z="-7.942810861169262"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="n">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="215" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="3.307189138830738" y="-2.25" z="9.78594569415369"/>
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Intersect">
<input a0="Circle[A, f]" a1="Circle[B, h]" a2="2"/>
<output a0="G'"/>
</command>
<element type="point" label="G'">
<show object="false" label="true"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="6.5" y="-7.330127018922194" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<command name="If">
<input a0="C ≟ G' ∧ C' ≟ G'" a1="true" a2="false"/>
<output a0="closed2"/>
</command>
<element type="boolean" label="closed2">
<value val="false"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<command name="Polygon">
<input a0="{A, B, G'}"/>
<output a0="t2"/>
</command>
<element type="polygon" label="t2">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<condition showObject="closed2 ≠ 0"/>
<objColor r="255" g="215" b="0" alpha="0.3100000023841858"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
</construction>
</geogebra>