**angle** is the polar angle for its direction
9
**headwidth** is the half-width of the arrowhead as a fraction of the magnitude, range of [0,1]. suggested value of 0.05.
10
**headlength** is the length of the arrowhead as a fraction of the magnitude, range of [0,1]. suggested value of 0.1.
11
**headstyle** adjusts the arrowhead shape with "0" being stick-like and "1" being triangular. 0.5 looks pretty cool. You can even choose values outside of [0,1] if you're a weirdo.
12
Technically, what my arrow functions do is return a list of points in this order: (1) the base, (2) the "back" of the arrowhead, (3) the lefthand corner, (4) the tip, (5) the righthand corner, and (6) the arrowhead "back" again. There needs to be a repeated point to properly "close" the shape for lines and shading.
13
With a list of points like these arrow functions, you can change the appearance to remove the point markers and add connecting lines, but you can't fill the result directly. To fill, you need to pass the list of points to a polygon command. You can either name the point list and then do polygon(name), or you can do polygon(arrow(stuff)) without naming the list. See the examples for illustrations of this!
14
Desmos allows you to name polygons, but you can't select a single point from the polygon by doing something like myPoly[3] the way you would with a list of points by writing myList[3]. This may impact how you want to write things, especially if you want to do any labeling. (See example 4.)
15
Extra functions: vector calculations you probably do frequently
16
Auxiliary functions and defaults for the arrows you might want to try. Each aux function has an example usage in the examples folder!
24
Example usages (the arrows and labels you see in the graph). Most of these involve the auxiliary functions.
34
54
powered by
powered by
New Blank Graph
Examples