-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from Haskell-Things/add_c0_insets_2
support split events.
- Loading branch information
Showing
6 changed files
with
796 additions
and
100 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
Algebra(2,0,1,()=>{ | ||
var line = (a,b,c)=>a*1e1 + b*1e2 + c*1e0; | ||
var point = (x,y)=>!(1e0 + x*1e1 + y*1e2); | ||
var aaa = point(1.0,1.0); | ||
var aab = point(-1.0,1.0); | ||
var aba = point(-1.0,1.0); | ||
var abb = point(0.0,0.0); | ||
var aca = point(0.0,0.0); | ||
var acb = point(-1.0,-1.0); | ||
var ada = point(-1.0,-1.0); | ||
var adb = point(1.0,-1.0); | ||
var aea = point(1.0,-1.0); | ||
var aeb = point(1.0,1.0); | ||
var afa = -0.7071067811865475e1+0.7071067811865475e2+0.0e0; | ||
var afb = -0.3826834323650897e1-0.9238795325112867e2+0.541196100146197e0; | ||
var afc = -0.9238795325112868e1-0.3826834323650897e2+0.5411961001461972e0; | ||
var aga = 0.3826834323650897e1-0.9238795325112867e2-0.541196100146197e0; | ||
var agb = 0.7071067811865475e1+0.7071067811865475e2+0.0e0; | ||
var agc = 0.9238795325112868e1-0.3826834323650897e2-0.5411961001461972e0; | ||
var aha = 0.9238795325112868e1-0.3826834323650897e2-0.5411961001461972e0; | ||
var ahb = 0.0e1-1.0e2+0.0e0; | ||
var ahc = -0.9238795325112868e1-0.3826834323650897e2+0.5411961001461972e0; | ||
var ba = point(0.14142135623730953,0.0); | ||
var bb = point(-0.7585786437626906,-0.9); | ||
var bc = point(0.9,-0.9); | ||
var bd = point(0.9,0.9); | ||
var be = point(-0.7585786437626906,0.9); | ||
var ca = point(0.28284271247461906,0.0); | ||
var cb = point(-0.517157287525381,-0.8); | ||
var cc = point(0.8,-0.8); | ||
var cd = point(0.8,0.8); | ||
var ce = point(-0.517157287525381,0.8); | ||
var da = point(0.4242640687119286,0.0); | ||
var db = point(-0.27573593128807133,-0.7); | ||
var dc = point(0.7,-0.7); | ||
var dd = point(0.7,0.7); | ||
var de = point(-0.27573593128807133,0.7); | ||
var ea = point(0.5656854249492381,0.0); | ||
var eb = point(-0.03431457505076187,-0.6); | ||
var ec = point(0.6,-0.6); | ||
var ed = point(0.6,0.6); | ||
var ee = point(-0.03431457505076187,0.6); | ||
var fa = point(0.5,-0.20710678118654763); | ||
var fb = point(0.20710678118654763,-0.5); | ||
var fc = point(0.5,-0.5); | ||
var ga = point(0.5,0.20710678118654763); | ||
var gb = point(0.5,0.5); | ||
var gc = point(0.20710678118654763,0.5); | ||
document.body.appendChild(this.graph([ | ||
0x882288, | ||
[aaa,aab], | ||
0x00AA88, | ||
aaa, "aaa", | ||
aab, "aab", | ||
0x882288, | ||
[aba,abb], | ||
0x00AA88, | ||
aba, "aba", | ||
abb, "abb", | ||
0x882288, | ||
[aca,acb], | ||
0x00AA88, | ||
aca, "aca", | ||
acb, "acb", | ||
0x882288, | ||
[ada,adb], | ||
0x00AA88, | ||
ada, "ada", | ||
adb, "adb", | ||
0x882288, | ||
[aea,aeb], | ||
0x00AA88, | ||
aea, "aea", | ||
aeb, "aeb", | ||
afa, "afa", | ||
afb, "afb", | ||
afc, "afc", | ||
aga, "aga", | ||
agb, "agb", | ||
agc, "agc", | ||
aha, "aha", | ||
ahb, "ahb", | ||
ahc, "ahc", | ||
0x882288, | ||
[ba,bb], | ||
[bb,bc], | ||
[bc,bd], | ||
[bd,be], | ||
[be,ba], | ||
0x00AA88, | ||
ba, "ba", | ||
bb, "bb", | ||
bc, "bc", | ||
bd, "bd", | ||
be, "be", | ||
0x882288, | ||
[ca,cb], | ||
[cb,cc], | ||
[cc,cd], | ||
[cd,ce], | ||
[ce,ca], | ||
0x00AA88, | ||
ca, "ca", | ||
cb, "cb", | ||
cc, "cc", | ||
cd, "cd", | ||
ce, "ce", | ||
0x882288, | ||
[da,db], | ||
[db,dc], | ||
[dc,dd], | ||
[dd,de], | ||
[de,da], | ||
0x00AA88, | ||
da, "da", | ||
db, "db", | ||
dc, "dc", | ||
dd, "dd", | ||
de, "de", | ||
0x882288, | ||
[ea,eb], | ||
[eb,ec], | ||
[ec,ed], | ||
[ed,ee], | ||
[ee,ea], | ||
0x00AA88, | ||
ea, "ea", | ||
eb, "eb", | ||
ec, "ec", | ||
ed, "ed", | ||
ee, "ee", | ||
0x882288, | ||
[fa,fb], | ||
[fb,fc], | ||
[fc,fa], | ||
0x00AA88, | ||
fa, "fa", | ||
fb, "fb", | ||
fc, "fc", | ||
0x882288, | ||
[ga,gb], | ||
[gb,gc], | ||
[gc,ga], | ||
0x00AA88, | ||
ga, "ga", | ||
gb, "gb", | ||
gc, "gc", | ||
],{ | ||
grid: true, | ||
labels: true, | ||
lineWidth: 3, | ||
pointRadius: 1, | ||
fontSize: 1, | ||
scale: 1, | ||
})); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
Algebra(2,0,1,()=>{ | ||
var line = (a,b,c)=>a*1e1 + b*1e2 + c*1e0; | ||
var point = (x,y)=>!(1e0 + x*1e1 + y*1e2); | ||
var aaa = point(-1.0,1.0); | ||
var aab = point(-1.0,-1.0); | ||
var aba = point(-1.0,-1.0); | ||
var abb = point(0.0,0.0); | ||
var aca = point(0.0,0.0); | ||
var acb = point(1.0,-1.0); | ||
var ada = point(1.0,-1.0); | ||
var adb = point(1.0,1.0); | ||
var aea = point(1.0,1.0); | ||
var aeb = point(-1.0,1.0); | ||
var afa = -0.7071067811865475e1-0.7071067811865475e2+0.0e0; | ||
var afb = 0.9238795325112867e1-0.3826834323650897e2+0.541196100146197e0; | ||
var afc = 0.3826834323650897e1-0.9238795325112868e2+0.5411961001461972e0; | ||
var aga = 0.9238795325112867e1+0.3826834323650897e2-0.541196100146197e0; | ||
var agb = -0.7071067811865475e1+0.7071067811865475e2+0.0e0; | ||
var agc = 0.3826834323650897e1+0.9238795325112868e2-0.5411961001461972e0; | ||
var aha = 0.3826834323650897e1+0.9238795325112868e2-0.5411961001461972e0; | ||
var ahb = 1.0e1+0.0e2+0.0e0; | ||
var ahc = 0.3826834323650897e1-0.9238795325112868e2+0.5411961001461972e0; | ||
var ba = point(-0.0,0.14142135623730953); | ||
var bb = point(0.9,-0.7585786437626906); | ||
var bc = point(0.9,0.9); | ||
var bd = point(-0.9,0.9); | ||
var be = point(-0.9,-0.7585786437626906); | ||
var ca = point(-0.0,0.28284271247461906); | ||
var cb = point(0.8,-0.517157287525381); | ||
var cc = point(0.8,0.8); | ||
var cd = point(-0.8,0.8); | ||
var ce = point(-0.8,-0.517157287525381); | ||
var da = point(-0.0,0.4242640687119286); | ||
var db = point(0.7,-0.27573593128807133); | ||
var dc = point(0.7,0.7); | ||
var dd = point(-0.7,0.7); | ||
var de = point(-0.7,-0.27573593128807133); | ||
var ea = point(-0.0,0.5656854249492381); | ||
var eb = point(0.6,-0.03431457505076187); | ||
var ec = point(0.6,0.6); | ||
var ed = point(-0.6,0.6); | ||
var ee = point(-0.6,-0.03431457505076187); | ||
var fa = point(0.20710678118654763,0.5); | ||
var fb = point(0.5,0.20710678118654763); | ||
var fc = point(0.5,0.5); | ||
var ga = point(-0.20710678118654763,0.5); | ||
var gb = point(-0.5,0.5); | ||
var gc = point(-0.5,0.20710678118654763); | ||
document.body.appendChild(this.graph([ | ||
0x882288, | ||
[aaa,aab], | ||
0x00AA88, | ||
aaa, "aaa", | ||
aab, "aab", | ||
0x882288, | ||
[aba,abb], | ||
0x00AA88, | ||
aba, "aba", | ||
abb, "abb", | ||
0x882288, | ||
[aca,acb], | ||
0x00AA88, | ||
aca, "aca", | ||
acb, "acb", | ||
0x882288, | ||
[ada,adb], | ||
0x00AA88, | ||
ada, "ada", | ||
adb, "adb", | ||
0x882288, | ||
[aea,aeb], | ||
0x00AA88, | ||
aea, "aea", | ||
aeb, "aeb", | ||
afa, "afa", | ||
afb, "afb", | ||
afc, "afc", | ||
aga, "aga", | ||
agb, "agb", | ||
agc, "agc", | ||
aha, "aha", | ||
ahb, "ahb", | ||
ahc, "ahc", | ||
0x882288, | ||
[ba,bb], | ||
[bb,bc], | ||
[bc,bd], | ||
[bd,be], | ||
[be,ba], | ||
0x00AA88, | ||
ba, "ba", | ||
bb, "bb", | ||
bc, "bc", | ||
bd, "bd", | ||
be, "be", | ||
0x882288, | ||
[ca,cb], | ||
[cb,cc], | ||
[cc,cd], | ||
[cd,ce], | ||
[ce,ca], | ||
0x00AA88, | ||
ca, "ca", | ||
cb, "cb", | ||
cc, "cc", | ||
cd, "cd", | ||
ce, "ce", | ||
0x882288, | ||
[da,db], | ||
[db,dc], | ||
[dc,dd], | ||
[dd,de], | ||
[de,da], | ||
0x00AA88, | ||
da, "da", | ||
db, "db", | ||
dc, "dc", | ||
dd, "dd", | ||
de, "de", | ||
0x882288, | ||
[ea,eb], | ||
[eb,ec], | ||
[ec,ed], | ||
[ed,ee], | ||
[ee,ea], | ||
0x00AA88, | ||
ea, "ea", | ||
eb, "eb", | ||
ec, "ec", | ||
ed, "ed", | ||
ee, "ee", | ||
0x882288, | ||
[fa,fb], | ||
[fb,fc], | ||
[fc,fa], | ||
0x00AA88, | ||
fa, "fa", | ||
fb, "fb", | ||
fc, "fc", | ||
0x882288, | ||
[ga,gb], | ||
[gb,gc], | ||
[gc,ga], | ||
0x00AA88, | ||
ga, "ga", | ||
gb, "gb", | ||
gc, "gc", | ||
],{ | ||
grid: true, | ||
labels: true, | ||
lineWidth: 3, | ||
pointRadius: 1, | ||
fontSize: 1, | ||
scale: 1, | ||
})); | ||
}); |
Oops, something went wrong.