直线的投影量演示
2016-11-21 03:13
本 GeoGebra 范例直观演示了直线与向量的投影量计算与几何构造。通过构建正交线、角度及多边形,动态展示了点或向量在特定直线或坐标轴上的投影过程。范例结合了向量运算与基础几何作图,帮助学习者深入理解投影的几何意义及其在相似三角形、平行四边形等图形中的关联应用。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.295.0" id="92db90a7-5464-4dc3-9474-7942aa81c891" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="950" height="650" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.9978947368421053" 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 , 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="948" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3" size="200" window="100,100,250,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="474" 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" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="128" visible="false" inframe="true" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="4097" visible="false" inframe="true" stylebar="true" location="1" size="474" window="486,228,832,550" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" 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="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 || 100003" position="1" help="false" />
<input show="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="16"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="948" height="648"/>
<coordSystem xZero="584.0000000000005" yZero="364.0000000000001" scale="50.000000000000064" yscale="49.999999999999986"/>
<evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="2" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="32" g="32" b="32"/>
<lineStyle axes="0" grid="20"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="false" tickDistance="1" tickExpression="1"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="false" tickDistance="1" tickExpression="1"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<expression label ="O" exp="(0, 0)" type="point"/>
<element type="point" label="O">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<coords x="0" y="0" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="point" label="N">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="2" y="2" z="1"/>
<pointSize val="5"/>
<pointStyle val="2"/>
</element>
<command name="Vector">
<input a0="O" a1="N"/>
<output a0="n"/>
</command>
<element type="vector" label="n">
<show object="true" label="false" ev="4"/>
<objColor r="102" g="153" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="2" y="2" z="0"/>
<lineStyle thickness="7" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="O"/>
</element>
<element type="numeric" label="c">
<value val="-3"/>
<symbolic val="true" />
<show object="true" label="true"/>
<objColor r="255" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelOffset x="-50" y="3"/>
<labelMode val="2"/>
<slider min="-20" max="20" absoluteScreenLocation="true" width="400" x="934" y="514" fixed="false" horizontal="false" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<expression label="a" exp="x(N)" />
<element type="numeric" label="a">
<value val="2"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="b" exp="y(N)" />
<element type="numeric" label="b">
<value val="2"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="f" exp="(a * x) + (b * y) = c" type="line" />
<element type="line" label="f">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="2" y="2" z="3"/>
<lineStyle thickness="4" type="0" typeHidden="1"/>
<eqnStyle style="implicit"/>
</element>
<command name="Point">
<input a0="f"/>
<output a0="Q"/>
</command>
<element type="point" label="Q">
<show object="true" label="false" ev="4"/>
<condition showObject="showPointOnLine"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="true"/>
<coords x="-4.25" y="2.75" z="1"/>
<pointSize val="5"/>
<pointStyle val="2"/>
</element>
<command name="Vector">
<input a0="O" a1="Q"/>
<output a0="v"/>
</command>
<element type="vector" label="v">
<show object="true" label="false" ev="4"/>
<condition showObject="showPointOnLine"/>
<objColor r="255" g="102" b="153" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-4.25" y="2.75" z="0"/>
<lineStyle thickness="7" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="O"/>
</element>
<command name="Line">
<input a0="N" a1="n"/>
<output a0="g"/>
</command>
<element type="line" label="g">
<show object="true" label="false" ev="4"/>
<condition showObject="showTicks"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2" y="2" z="0"/>
<lineStyle thickness="2" type="10" typeHidden="1"/>
<eqnStyle style="implicit"/>
</element>
<command name="Intersect">
<input a0="g" a1="f"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-6" y="-6" z="8"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="d" exp="((-b), a)" type="vector" />
<element type="vector" label="d">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2" y="2" z="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
</element>
<command name="TextAngle">
<input a0="Angle[n]"/>
<output a0="angText"/>
</command>
<element type="numeric" label="angText">
<value val="0.7853981633974483"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Zip">
<input a0="floor(((n * Vector[Pt])) / Length[n])" a1="Pt" a2="Sequence[Corner[k], k, 1, 4]"/>
<output a0="listCornersX"/>
</command>
<element type="list" label="listCornersX">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
<symbolic val="true" />
</element>
<command name="Min">
<input a0="listCornersX"/>
<output a0="minX"/>
</command>
<element type="numeric" label="minX">
<value val="-13"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Max">
<input a0="listCornersX"/>
<output a0="maxX"/>
</command>
<element type="numeric" label="maxX">
<value val="10"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="nu" exp="n / Length[n]" type="vector" />
<element type="vector" label="nu">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0.7071067811865475" y="0.7071067811865475" z="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
</element>
<expression label="du" exp="d / Length[d]" type="vector" />
<element type="vector" label="du">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-0.7071067811865475" y="0.7071067811865475" z="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
</element>
<expression label ="padT" exp="0.1"/>
<element type="numeric" label="padT">
<value val="0.1"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="Segment[O + (k * nu) + (padT * du), O + (k * nu) - (padT * du)]" a1="k" a2="minX" a3="maxX"/>
<output a0="ticksT"/>
</command>
<element type="list" label="ticksT">
<show object="true" label="false" ev="4"/>
<condition showObject="showTicks"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
</element>
<expression label ="offT" exp="-0.2"/>
<element type="numeric" label="offT">
<value val="-0.2"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
</element>
<command name="RotateText">
<input a0=""0"" a1="angText"/>
<output a0="tx0r"/>
</command>
<element type="text" label="tx0r">
<symbolic val="true" />
<show object="false" label="true" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="false" sizeM="1.4" size="7" style="1"/>
</element>
<expression label="tx0" exp=""0""/>
<element type="text" label="tx0">
<show object="false" label="true" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<startPoint x="-4.960000000000002" y="1.0999999999999988" z="1"/>
</element>
<expression label="txw" exp="x(Corner[tx0, 2] - Corner[tx0, 1])" />
<element type="numeric" label="txw">
<value val="0.6199999999999992"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="txh" exp="y(Corner[tx0, 4] - Corner[tx0, 1])" />
<element type="numeric" label="txh">
<value val="0.7800000000000002"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="txwr" exp="x(Corner[tx0r, 2] - Corner[tx0r, 1])" />
<element type="numeric" label="txwr">
<value val="0.9999999999999988"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="txhr" exp="y(Corner[tx0r, 4] - Corner[tx0r, 1])" />
<element type="numeric" label="txhr">
<value val="1.0000000000000004"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="TextPin">
<input a0="O" a1="Vector[If[v ⊗ n > 0, d, Vector[(-d)]]]" a2="txh" a3="10" a4="txwr" a5="txhr"/>
<output a0="Pin"/>
</command>
<element type="point" label="Pin">
<show object="false" label="false" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-0.08280699909993638" y="0.08280699909993705" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Text[RotateText[k + "", angText], Pin + (k * nu), true, true]" a1="k" a2="minX" a3="maxX"/>
<output a0="labelsX"/>
</command>
<element type="list" label="labelsX">
<show object="true" label="false" ev="4"/>
<condition showObject="showTicks"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="-1"/>
<font serif="false" sizeM="1" size="0" style="1"/>
</element>
<expression label="projL" exp="c / Length[n]" />
<element type="numeric" label="projL">
<value val="-1.0606601717798212"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="padProj" exp="(2 * padT)" />
<element type="numeric" label="padProj">
<value val="0.2"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Segment">
<input a0="O + (projL * nu) + (padProj * du)" a1="O + (projL * nu) - (padProj * du)"/>
<output a0="segProjL"/>
</command>
<element type="segment" label="segProjL">
<show object="true" label="false" ev="4"/>
<condition showObject="showProjLine"/>
<objColor r="255" g="127" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0.2828427124746191" y="0.2828427124746191" z="0.4242640687119286"/>
<lineStyle thickness="11" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<expression label="nxv" exp="n ⊗ v" />
<element type="numeric" label="nxv">
<value val="14"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Angle">
<input a0="A + n" a1="A" a2="A + (If[nxv < 0, -1, 1] * d)"/>
<output a0="α"/>
</command>
<element type="angle" label="α">
<angleStyle val="1"/>
<value val="1.5707963267948966"/>
<show object="true" label="false" ev="4"/>
<condition showObject="showTicks"/>
<objColor r="68" g="68" b="68" alpha="0.35"/>
<layer val="0"/>
<labelMode val="1"/>
<lineStyle thickness="1" type="0" typeHidden="2"/>
<arcSize val="15"/>
<selectionAllowed val="false"/>
</element>
<expression label="txV" exp=""\vec{v}=(x,y)""/>
<element type="text" label="txV">
<show object="true" label="false" ev="20"/>
<condition showObject="showPointOnLine"/>
<objColor r="255" g="51" b="102" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<startPoint exp="Q"/>
</element>
<element type="point" label="P">
<show object="true" label="false" ev="4"/>
<condition showObject="showDistance ∨ showProjPoint"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="1" y="4" z="1"/>
<pointSize val="5"/>
<pointStyle val="2"/>
</element>
<command name="Vector">
<input a0="O" a1="P"/>
<output a0="p"/>
</command>
<element type="vector" label="p">
<show object="true" label="false" ev="4"/>
<condition showObject="showProjPoint"/>
<objColor r="0" g="153" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="1" y="4" z="0"/>
<lineStyle thickness="7" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="O"/>
</element>
<expression label="projP" exp="((p * n)) / Length[n]" />
<element type="numeric" label="projP">
<value val="3.5355339059327373"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Segment">
<input a0="O + (projP * nu) + (padProj * du)" a1="O + (projP * nu) - (padProj * du)"/>
<output a0="segProjP"/>
</command>
<element type="segment" label="segProjP">
<show object="true" label="false" ev="4"/>
<condition showObject="showProjPoint"/>
<objColor r="0" g="153" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="0.28284271247461934" y="0.28284271247461934" z="-1.4142135623730958"/>
<lineStyle thickness="11" type="0" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<expression label="ProjP" exp="O + (projP * nu)" type="point" />
<element type="point" label="ProjP">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2.4999999999999996" y="2.4999999999999996" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="P" a1="ProjP"/>
<output a0="h"/>
</command>
<element type="segment" label="h">
<show object="true" label="false" ev="4"/>
<condition showObject="showProjPoint"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="1.5000000000000004" y="1.4999999999999996" z="-7.499999999999998"/>
<lineStyle thickness="2" type="10" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="boolean" label="showPointOnLine">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="17" y="66"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="線上的點"/>
</element>
<element type="boolean" label="showProjLine">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="17" y="116"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If[showProjLine, SetValue[showTicks, true]]"/>
<caption val="線的投影量"/>
</element>
<element type="boolean" label="showProjPoint">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="3"/>
<labelOffset x="15" y="212"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If[showProjPoint, SetValue[showTicks, true]] If[showProjPoint, SetValue[showDistance, true]] "/>
<caption val="點的投影量"/>
</element>
<command name="OrthogonalLine">
<input a0="P" a1="f"/>
<output a0="i"/>
</command>
<element type="line" label="i">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-2" y="2" z="-6"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<eqnStyle style="implicit"/>
</element>
<command name="Intersect">
<input a0="f" a1="i"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-18" y="6" z="8"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="P" a1="B"/>
<output a0="j"/>
</command>
<element type="segment" label="j">
<show object="true" label="false" ev="4"/>
<condition showObject="showDistance"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="3.25" y="-3.25" z="9.75"/>
<lineStyle thickness="2" type="10" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Angle">
<input a0="P" a1="B" a2="B + d"/>
<output a0="β"/>
</command>
<element type="angle" label="β">
<angleStyle val="1"/>
<value val="1.5707963267948966"/>
<show object="true" label="false" ev="4"/>
<condition showObject="showDistance"/>
<objColor r="68" g="68" b="68" alpha="0.35"/>
<layer val="0"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="2"/>
<arcSize val="15"/>
</element>
<element type="boolean" label="showDistance">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="3"/>
<labelOffset x="15" y="262"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="點到線距離"/>
</element>
<element type="boolean" label="showTicks">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="17" y="16"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="投影量座標"/>
</element>
<expression label="txEq" exp=""(\fgcolor{006600}{" + (LaTeX[a]) + "})x+(\fgcolor{006600}{" + (LaTeX[b]) + "})y=\fgcolor{ff0000}{" + (LaTeX[c]) + "}"" />
<element type="text" label="txEq">
<show object="true" label="false" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="255" alpha="255"/>
<layer val="2"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="2" size="16" style="1"/>
<absoluteScreenLocation x="413" y="10"/>
</element>
<expression label="txN" exp=""\vec{n}=( " + (LaTeX[a]) + ", " + (LaTeX[b]) + ")"" />
<element type="text" label="txN">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<startPoint exp="N"/>
<labelOffset x="-2" y="-1"/>
</element>
<expression label="txProjL" exp=""" + (LaTeX[If[sgn(c) < 0, "-", ""] + (LatexSqrtFraction[c^(2), (n * n), "ff3300", "ff3300"])]) + """ />
<element type="text" label="txProjL">
<show object="true" label="false" ev="8"/>
<condition showObject="showProjLine"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<absoluteScreenLocation x="142" y="107"/>
</element>
<expression label="txProjP" exp=""" + (LaTeX[If[sgn((p * n)) < 0, "-", ""] + (LatexSqrtFraction[((p * n))^(2), (n * n), "000ff", "0000ff"])]) + """ />
<element type="text" label="txProjP">
<show object="true" label="false" ev="8"/>
<condition showObject="showProjPoint"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<absoluteScreenLocation x="142" y="193"/>
</element>
<expression label="txDistance" exp=""" + (LaTeX[LatexSqrtFraction[(c - (p * n))^(2), (n * n), "", ""]]) + """ />
<element type="text" label="txDistance">
<show object="true" label="false" ev="8"/>
<condition showObject="showDistance"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<absoluteScreenLocation x="139" y="272"/>
</element>
<element type="boolean" label="showG">
<value val="true"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelOffset x="15" y="362"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="ShowGrid[1, showG] ShowAxes[1, showG]"/>
<caption val="顯示格線"/>
</element>
<expression label="txP" exp=""" + (LaTeX[P]) + """ />
<element type="text" label="txP">
<show object="true" label="false" ev="20"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="7" style="1"/>
<startPoint exp="P"/>
</element>
<expression label="pixel" exp="x(Corner[2] - Corner[1]) / x(Corner[5])" />
<element type="numeric" label="pixel">
<value val="0.02004219409282698"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label ="boxPad" exp="5"/>
<element type="numeric" label="boxPad">
<value val="5"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="3"/>
<labelMode val="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
</element>
<expression label ="boxW" exp="250"/>
<element type="numeric" label="boxW">
<value val="250"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="3"/>
<labelMode val="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
</element>
<expression label="BoxP1" exp="Corner[1] + ((boxPad * pixel) * (1, 1))" type="point" />
<element type="point" label="BoxP1">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<coords x="-11.599789029535861" y="-5.599789029535866" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="BoxP2" exp="BoxP1 + ((boxW * pixel), 0)" type="point" />
<element type="point" label="BoxP2">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<coords x="-6.589240506329116" y="-5.599789029535866" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="BoxP4" exp="Corner[4] + ((boxPad * pixel) * (1, -1))" type="point" />
<element type="point" label="BoxP4">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<coords x="-11.599789029535861" y="7.199789029535871" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="BoxP3" exp="BoxP4 + ((boxW * pixel), 0)" type="point" />
<element type="point" label="BoxP3">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<coords x="-6.589240506329116" y="7.199789029535871" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Polygon">
<input a0="{BoxP1, BoxP2, BoxP3, BoxP4}"/>
<output a0="box"/>
</command>
<element type="polygon" label="box">
<lineStyle thickness="2" type="0" typeHidden="1"/>
<show object="true" label="false" ev="4"/>
<objColor r="224" g="224" b="224" alpha="0.85"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
</construction>
</geogebra>