aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.scad
diff options
context:
space:
mode:
authorElena of Valhalla'' Grandi <valhalla@trueelena.org>2014-06-22 12:33:55 +0200
committerElena of Valhalla'' Grandi <valhalla@trueelena.org>2014-06-22 12:33:55 +0200
commitc6b16f80c6158c4ec07ca30be5ca87cd8d7b326c (patch)
treedd819a6b5b7701b7b055ad8f740a45161cf459fa /lib/utils.scad
parent10b38e77082ad8df31f0e5e4d9d7ee62a1634c78 (diff)
Add d4 and size to side util functions
Diffstat (limited to 'lib/utils.scad')
-rw-r--r--lib/utils.scad7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/utils.scad b/lib/utils.scad
new file mode 100644
index 0000000..d849636
--- /dev/null
+++ b/lib/utils.scad
@@ -0,0 +1,7 @@
+
+function circ_rad(size) = size / sqrt(2);
+
+function s2s_d4(size) = circ_rad(size)*2/sqrt(6);
+
+function s2s_d6(size) = size;
+