chiark / gitweb /
topeak-seatstay-lock: v4 warped, probably due to slow speed?
[reprap-play.git] / funcs.scad.cpp
index 007ac4568297745bf2c695767ceac8bcab051411..7bcd414a46cddec1071a13cd48db6e2a8a6800c8 100644 (file)
@@ -31,3 +31,7 @@ function tangents_intersect_beta(cbig,rbig,csmall,rsmall) =
 
 function reflect_in_y(p) = [-p[0], p[1]];
 
+function angle_map_range(in,base) =
+  in <  base       ? in + 360 :
+  in >= base + 360 ? in - 360 :
+  in;