Arrow() draws an arrow from the first point to the second point. The default arrowhead is scaled to 1 plus the square root of the length of the arrow. To set the length of the arrowhead, add an optional first argument, specifying the length of the arrowhead in pixels. The following example draws simple arrows.
x = r * Cosine( a );
y = r * Sine( a );
aa = a + ainc * 45 / r;
rr = r - r / 6;
x2 = rr * Cosine( aa );
y2 = rr * Sine( aa );
图 12.11 Drawing Arrows
x = 10;
y1 = 10;
y2 = y1 + 10;
y2 += 10;
y1 += 100;
y2 += 100;
x += 10;
y1 -= 100;
y2 -= 100;
图 12.12 Arrowhead Sizes
As with Line(), you can either specify the points in two-item lists as demonstrated above or as matrices of x and then y coordinates.