"disp" - mkraska/meclib GitHub Wiki

[ "disp", "name", [x,y], angle, offset, length]

small red arrow with label (indication of displacement). Same as dir, except for the color.

  • "name" label, typeset in MathJax math mode
  • [x,y] start point
  • angle arrow direction, counter-clockwise from x-axis, in °.
  • offset (optional, defaults to 10 pixels) distance from arrow to text anchor point in pixels. If offset < 0, then the label is placed at the tail of the arrow, otherwise at the head.
  • length (optional, defaults to equivalent of 24 pixels), in standard grid units
[
  [ "grid", "","", -5,5,-4,5, 50, [1,1], [0,0] ],
  [ "point", "start point", [2,1] ],
  [ "angle1", "\\alpha", [2, 1], [3,1], 0.7, 45 ],
  [ "angle1", "\\alpha", [-2, 1], [-1,1], 0.7, 45 ],
  [ "disp", "name", [2,1], 45, 10, 2],
  [ "disp", "name", [-2,1], 45, -10, 2]
]