Geometric Construction of Light Reflection Inside an Ellipse
2019-08-14 06:33
This example demonstrates the geometric construction of light reflection inside an ellipse. Utilizing the optical property that light from one focus reflects to the other, it dynamically constructs incident and reflected rays using GeoGebra commands like Point, Ellipse, and Sequence, intuitively visualizing the optical characteristics of conic sections.
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.549.0" app="classic" platform="d" id="f7656558-9efa-4ebf-aec8-9f6692be5ac1" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1360" height="728" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.4345588235294118" 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 | 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="true" location="1,1" size="300" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3,3" size="200" 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="4097" visible="false" inframe="false" stylebar="true" location="1,0" size="397" window="100,100,700,550" />
<view id="1" visible="true" inframe="false" stylebar="false" location="3" size="591" window="100,100,600,400" />
<view id="16" visible="true" inframe="false" stylebar="true" location="1" size="737" 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="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" 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="true" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="16"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="591" height="546"/>
<coordSystem xZero="212.405784090909" yZero="301.5781079545451" scale="50.085227272727266" yscale="50.085227272727174"/>
<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>
<euclidianView>
<viewNumber viewNo="2"/>
<size width="737" height="521"/>
<coordSystem xZero="387.0" yZero="308.99999999999983" scale="49.99999999999998" yscale="49.99999999999996"/>
<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>
<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="step">
<value val="6.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="6" absoluteScreenLocation="true" width="200.0" x="70.0" y="27.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="0.5" type="3" playing="false"/>
</element>
<command name="Point">
<input a0="xAxis"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="true" label="true" ev="11"/>
<condition showObject="step ≥ 2"/>
<objColor r="0" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="4" y="35"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="-2.0" y="0.0" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="xAxis"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="true" label="true" ev="11"/>
<condition showObject="step ≥ 2"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="3" y="29"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="2.0" y="0.0" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="yAxis"/>
<output a0="C"/>
</command>
<element type="point" label="C">
<show object="false" label="true" ev="11"/>
<condition showObject="step ≥ 2 ∧ step < 3"/>
<objColor r="125" g="125" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="0.0" y="2.0" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Ellipse">
<input a0="A" a1="B" a2="C"/>
<output a0="c"/>
</command>
<element type="conic" label="c">
<show object="true" label="false" ev="11"/>
<condition showObject="step ≥ 2"/>
<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="64.00000000000001" A1="128.00000000000003" A2="-512.0000000000003" A3="0.0" A4="-0.0" A5="-0.0"/>
<eqnStyle style="implicit"/>
</element>
<element type="numeric" label="a">
<value val="0.04"/>
<show object="true" label="true" ev="3"/>
<condition showObject="step ≥ 3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0.01" max="0.1" absoluteScreenLocation="true" width="200.0" x="154.0" y="49.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.01" speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="Point[c, i]" a1="i" a2="0" a3="1" a4="a"/>
<output a0="l1"/>
</command>
<element type="list" label="l1">
<show object="false" label="false" ev="11"/>
<condition showObject="step ≥ 4 ∧ step < 5"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="Zip">
<input a0="Vector[B, S]" a1="S" a2="l1"/>
<output a0="l2"/>
</command>
<element type="list" label="l2">
<show object="true" label="false" ev="11"/>
<condition showObject="step ≥ 5"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="Zip">
<input a0="Vector[S, A]" a1="S" a2="l1"/>
<output a0="l3"/>
</command>
<element type="list" label="l3">
<show object="true" label="false" ev="11"/>
<condition showObject="step ≥ 6"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="3" type="20" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<expression label="text1" exp=""" + (LaTeX[If[step ≥ 0, "\underline{\textcolor{red}{***绘制说明***} }"]]) + "\\
\\" + (LaTeX[If[step ≥ 1, "(1)~构思:\\ 在椭圆上分布均匀地取点列作为反射点,\\ 右焦点作为起点,点例中的点作为终点构造向量,形成入射光线,\\ 点例中的点作为起点,左焦点作为终点构造向量,形成反射光线"]]) + "
\\
\\" + (LaTeX[If[step ≥ 2, "(2)~用基本命令绘制椭圆"]]) + "
\\
\\" + (LaTeX[If[step ≥ 3, " (3)~创建滑动条a"]]) + "
\\
\\" + (LaTeX[If[step ≥ 4, " (4)~l1=Sequence(Point(c, i), i, 0, 1, a) \\ i表示点在椭圆c上的值,\\a表示间距步长,a越小,点取得越密。"]]) + "
\\
\\" + (LaTeX[If[step ≥ 5, " (5)~Zip(Vector(B, S), S, l1)\\ 映射命令表示将l1中的点映射给点S,\\点S再和右焦点B构造向量"]]) + "
\\
\\" + (LaTeX[If[step ≥ 6, " (6)~Zip(Vector(S, A), S, l1) \\制作过程参考了\\衡阳师院孟宝兴老师的课件,在此表示感谢!"]]) + """ />
<element type="text" label="text1">
<show object="true" label="true" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.0" size="0" style="0"/>
<startPoint x="-3.4720294951786737" y="5.041238797504254" z="1.0"/>
</element>
</construction>
</geogebra>