File: intersection_with_dependencies_II.html

package info (click to toggle)
jsxgraph 1.3.5+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 26,044 kB
  • sloc: xml: 5,869; java: 1,072; python: 747; php: 192; makefile: 146; sh: 47
file content (39 lines) | stat: -rw-r--r-- 1,802 bytes parent folder | download | duplicates (2)
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
<html>
<head>
   <title>JSXGraph example</title>
   <link rel="stylesheet" type="text/css" href="../distrib/jsxgraph.css" />
   <script type="text/javascript" src="/javascript/prototype/prototype.js"></script>
   <script type="text/javascript" src="../src/loadjsxgraph.js"></script>
</head>
<body>
<h2>Intersections - Version 2 </h2>
<div style="width:800px">
  <div id="jxgbox" class="jxgbox" style="width:600px; height:450px; float:left"></div>
</div>
<div id="debug" style="display:none;"></div>
   <script type="text/javascript">
    /* <![CDATA[ */

        board = JXG.JSXGraph.initBoard('jxgbox', {originX: 50, originY: 300, unitX: 50, unitY: 50});
        
        var p1 = board.createElement('point', [2, 0], {style:5,name:"A",fillColor:'blue'}); 
        var p2 = board.createElement('point', [8, 0], {style:5,name:"B",fillColor:'blue'}); 
        var p3 = board.createElement('point', [0, -1], {style:5,name:"C",fillColor:'blue'}); 
        var p4 = board.createElement('point', [10, -1], {style:5,name:"D",fillColor:'blue'}); 	
        
        var p5 = board.createElement('point', [5, -1], {style:5,name:"E",fillColor:'blue'}); 	
        var p6 = board.createElement('point', [3, 0], {style:5,name:"F",fillColor:'blue'}); 
        
        var c1 = board.createElement('circle',[p1,p3]);
        var c2 = board.createElement('circle',[p2,p4]);
        var c3 = board.createElement('circle',[p5,p6]);
        
        //var i11 = board.createElement('point',[board.intersectionFunc(c1,c3,0)], {style:8,name:"G"});
        var i11 = board.createElement('intersection',[c1,c3,0], {style:8,name:"G"});
        var i12 = board.createElement('otherintersection',[c1,c3,i11], {style:8,name:"H"});

        var l1 = board.createElement('line',['G','H']);
  /* ]]> */
  </script>
</body>
</html>