Curve;

// This draws a curve with a stick arrow on the end.

// e1 is the starting point, e2 is the ending point of the curve.
// c1 is the control point for the starting point e1.
// c2 is the control point for the ending point e2.
// The last parameter says the curve should have 16 segments.
BezierCurve(c1x,c1y,c2x,c2y,e1x,e1y,e2x,e2y,10);

// Draw the right part of the arrow.
dAngle1 = dBezierEndAngle -3.1415/6;
d1 = grid;
x1 = LengthTimesCosine(d1,dAngle1);
y1 = LengthTimesSine(d1,dAngle1);
MoveTo(e2x,e2y);
LineTo(e2x +x1,e2y +y1);

// Draw the left part of the arrow.
dAngle1 = dBezierEndAngle +3.1415/6;
d1 = grid;
x1 = LengthTimesCosine(d1,dAngle1);
y1 = LengthTimesSine(d1,dAngle1);
MoveTo(e2x,e2y);
LineTo(e2x +x1,e2y +y1);

 