return r;
}
-inline pointf interpolate(double t, pointf p, pointf q)
+inline pointf interpolate_pointf(double t, pointf p, pointf q)
{
pointf r;
extern point mid_point(point p, point q);
extern pointf mid_pointf(pointf p, pointf q);
-extern pointf interpolate(double t, pointf p, pointf q);
+extern pointf interpolate_pointf(double t, pointf p, pointf q);
extern point exch_xy(point p);
extern pointf exch_xyf(pointf p);
if (mode != ROUNDED)
B[i++] = p0;
if (mode == ROUNDED)
- B[i++] = interpolate(RBCURVE * t, p0, p1);
- B[i++] = interpolate(t, p0, p1);
- B[i++] = interpolate(1.0 - t, p0, p1);
+ B[i++] = interpolate_pointf(RBCURVE * t, p0, p1);
+ B[i++] = interpolate_pointf(t, p0, p1);
+ B[i++] = interpolate_pointf(1.0 - t, p0, p1);
if (mode == ROUNDED)
- B[i++] = interpolate(1.0 - RBCURVE * t, p0, p1);
+ B[i++] = interpolate_pointf(1.0 - RBCURVE * t, p0, p1);
}
B[i++] = B[0];
B[i++] = B[1];