Added constants.scad to house all mathematical contants, and added deg(angle) to math.scad

This commit is contained in:
Elmom 2010-07-25 17:31:35 +03:00
parent e32971d3cf
commit fd06f8e648
2 changed files with 9 additions and 3 deletions

6
constants.scad Normal file
View file

@ -0,0 +1,6 @@
TAU = 6.2831853071; //2*PI, see http://tauday.com/
PI = TAU/2;
// translates a imperial measurement in inches to meters
mm_per_inch = 25.4;

View file

@ -1,4 +1,4 @@
PI = 3.14159;
include <constants.scad>
function deg(angle) = 360*angle/TAU;
// translates a imperial measurement in inches to meters
mm_per_inche =25.4;