summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad1
1 files changed, 1 insertions, 0 deletions
diff --git a/delta.jscad b/delta.jscad
index 85cf254..9061c28 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -120,24 +120,25 @@ var CD = {
120 })(), 120 })(),
121 duetholder: (function() { 121 duetholder: (function() {
122 var rv = {}; 122 var rv = {};
123 var s = CONFIG.base.sl; 123 var s = CONFIG.base.sl;
124 var l = CONFIG.duet.hole_spacing.x; 124 var l = CONFIG.duet.hole_spacing.x;
125 var w = CONFIG.duet.hole_spacing.y; 125 var w = CONFIG.duet.hole_spacing.y;
126 var h = s*Math.cos(Math.PI/6); 126 var h = s*Math.cos(Math.PI/6);
127 var h1 = h*(1-l/s); 127 var h1 = h*(1-l/s);
128 rv.distance = (h1-w)/3; // hole to side 128 rv.distance = (h1-w)/3; // hole to side
129 return rv; 129 return rv;
130 })() 130 })()
131}; 131};
132console.log(CONFIG); console.log(CD);
132 133
133var U = { 134var U = {
134 hypotenuse: function(a,b) { 135 hypotenuse: function(a,b) {
135 return Math.sqrt(Math.pow(a,2)+Math.pow(b,2)); 136 return Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
136 }, 137 },
137 peek: function(x,m) { 138 peek: function(x,m) {
138 console.log(x,m); 139 console.log(x,m);
139 return x; 140 return x;
140 } 141 }
141}; 142};
142 143
143/* {h:,w:} */ 144/* {h:,w:} */