summaryrefslogtreecommitdiffstats
path: root/kig/examples/fregier.kigt
blob: 7f986fec1d7bcf655165b913d50c80feeebfe660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE KigMacroFile>
<KigMacroFile Number="1" Version="0.4.0" >
 <Macro>
  <Name>fregier</Name>
  <Description></Description>
  <Construction>
   <input requirement="conic" id="1" />
   <input requirement="point" id="2" />
   <intermediate action="calc" type="ConicPolarLine" id="3" >
    <arg>1</arg>
    <arg>2</arg>
   </intermediate>
   <intermediate action="calc" type="LinePerpend" id="4" >
    <arg>3</arg>
    <arg>2</arg>
   </intermediate>
   <intermediate action="push" type="int" id="5" >1</intermediate>
   <intermediate action="calc" type="ConicLineIntersection" id="6" >
    <arg>1</arg>
    <arg>4</arg>
    <arg>5</arg>
   </intermediate>
   <intermediate action="calc" type="MidPoint" id="7" >
    <arg>2</arg>
    <arg>6</arg>
   </intermediate>
   <intermediate action="calc" type="LinePerpend" id="8" >
    <arg>4</arg>
    <arg>7</arg>
   </intermediate>
   <intermediate action="push" type="int" id="9" >-1</intermediate>
   <intermediate action="calc" type="ConicLineIntersection" id="10" >
    <arg>1</arg>
    <arg>8</arg>
    <arg>9</arg>
   </intermediate>
   <intermediate action="calc" type="RayAB" id="11" >
    <arg>2</arg>
    <arg>10</arg>
   </intermediate>
   <intermediate action="calc" type="LinePerpend" id="12" >
    <arg>11</arg>
    <arg>2</arg>
   </intermediate>
   <intermediate action="push" type="int" id="13" >1</intermediate>
   <intermediate action="calc" type="ConicLineIntersection" id="14" >
    <arg>1</arg>
    <arg>12</arg>
    <arg>13</arg>
   </intermediate>
   <intermediate action="calc" type="SegmentAB" id="15" >
    <arg>10</arg>
    <arg>14</arg>
   </intermediate>
   <result action="calc" type="LineLineIntersection" id="16" >
    <arg>15</arg>
    <arg>4</arg>
   </result>
  </Construction>
 </Macro>
</KigMacroFile>