-
Notifications
You must be signed in to change notification settings - Fork 3
"disp"
Niclas17 edited this page Jul 5, 2022
·
5 revisions
[ "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. Ifoffset
< 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]
]
In order to try code snippets in jsfiddle,
- copy the code from the wiki page to the clipboard
- follow the link for the JSXGraph version you want to try
- Replace the code in the HTML section (contents of
<p hidden id="init">
) with the content of the clipboard