File: pointsHomogeneous.html

package info (click to toggle)
jsxgraph 1.11.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,984 kB
  • sloc: javascript: 81,688; xml: 5,869; java: 1,072; php: 281; makefile: 189; python: 174; cpp: 76; sh: 12
file content (39 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download | duplicates (3)
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="../distrib/jsxgraphcore.js"></script>
</head>
<body>
<h2>Points and lines</h2>
<div style="width:800px">
  <div id="jxgbox" class="jxgbox" style="width:500px; height:500px; float:left"></div>
  <p style="float:right">
    <input type="button" value="Constraint points" onClick=""><br><br>
  </p>
</div>
<br clear=all>
<div id="debug" style="display:block;"></div>
   <script type="text/javascript">
    /* <![CDATA[ */

        board = JXG.JSXGraph.initBoard('jxgbox', {originX: 250, originY: 250, unitX: 25, unitY: 25});
        var p = [];
        p[0] = board.createElement('point', [1.0,-2.4,4.0], {style:6});
        p[1] = board.createElement('point', [1.0,2.28,3], {style:6,name:"B"});
        p[2] = board.createElement('point', [1.0,0.32,1.96], {style:6,name:"C"});
        p[3] = board.createElement('point', [12.648,29.22368,5.90784], {style:6,name:"D"});
        p[4] = board.createElement('point', [9.255999,-21.828159,-8.16608], {style:6,name:"E"});
        p[5] = board.createElement('point', [0,3357.549,28.6970], {style:6,name:"F"});
        p[6] = board.createElement('point', [0,1,2], {style:6,name:"G"});

        //board.createElement('line', [p[1],p[2]], {});
        board.createElement('line', [p[1],p[5]], {name:"x"});
        board.createElement('line', [p[4],p[5]]);

        board.createElement('line', [p[0],p[6]]);

  /* ]]> */
  </script>
</body>
</html>