+
+#ifdef TANGENTS
+ if(start< 0.5) {
+ test.control = cspline_getderivative(s, start);
+ test.control.x *= (end-start)/2;
+ test.control.y *= (end-start)/2;
+ test.control.x += test.start.x;
+ test.control.y += test.start.y;
+ } else {
+ test.control = cspline_getderivative(s, end);
+ test.control.x *= -(end-start)/2;
+ test.control.y *= -(end-start)/2;
+ test.control.x += test.end.x;
+ test.control.y += test.end.y;
+ }
+#endif
+