Commit 78edd6b9 authored by Henrik Tramberend's avatar Henrik Tramberend
Browse files

Concentrate Geometry stuff

parent c748c5a2
......@@ -35,7 +35,7 @@ $endif$
<link rel="stylesheet" href="$decker-support-dir$/vendor/reveal/css/reveal.css">
<link rel="stylesheet" href="$decker-support-dir$/plugins/whiteboard/whiteboard.css">
<link rel="stylesheet" href="$decker-support-dir$/plugins/menu/menu.css">
<link rel="stylesheet" href="$decker-support-dir$/css/geometry.css">
<link rel="stylesheet" href="$decker-support-dir$/geometry/geometry.css">
$if(thebelab.enable)$
<link rel="stylesheet" href="$decker-support-dir$/plugins/thebelab/thebelab.css">
$endif$
......
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let p1 = g.point(60, 60, "drag");
let p2 = g.point(540, 60);
......
......@@ -40,7 +40,7 @@ console.log("Hello", anchor);
```` {.markdown}
``` {.javascript .run}
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let segment = g.bezier(
g.point(60, 60),
g.point(540, 60, "drag"),
......@@ -58,7 +58,7 @@ g.renderSvg(anchor, 600, 400, segment);
## {.left}
``` {.javascript .run}
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let segment = g.bezier(
g.point(60, 60),
......@@ -100,7 +100,7 @@ width="100%"}
# Labels
``` {.javascript .run}
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let p = g.point(100,350, "drag");
let q = g.point(300,350, "drag");
......@@ -168,7 +168,7 @@ g.renderSvg(anchor, 1200, 500, g.group(
# Infinite Line
``` {.javascript .run}
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let p = g.point(100,150, "drag");
let q = g.point(400,150, "drag");
......
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let center = g.point(300, 300, "drag");
let intersection = new g.IsectLineCircle(
......
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let surfaceAnchor = g.point(300, 230);
let surfaceNormal = g.vector(surfaceAnchor, 0, -200);
......
import * as g from "/support/js/geometry.js";
import * as g from "/support/geometry/geometry.js";
let surfaceAnchor = g.point(300, 230, "drag");
let surfaceNormal = g.vector(surfaceAnchor, 0, -180);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment