Skip to content
Niclas17 edited this page Jul 7, 2022 · 4 revisions

[ "rot", "name", [x1, y1], [x2,y2], [x3,y3] ]

Red thin arc with arrow (to indicate rotational kinematic quantities) specified by center point, tail point (defines start angle and radius) and label point (defines end angle and radial label position. Orientation is such that the angle is less then 180° (shortest arc from start angle to end angle).

If the label placement is not good, suppress it using "" as name and use a "label" object with "red" color.

  • "name" label text, typeset in MathJax math mode
  • [x1, y1], [x2,y2], [x3,y3] center point, radius point, label point, respectively.

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  [ "rot", "name", [2, 2], [1,2], [3.2,2] ],
  [ "point", "1", [2,2] ],
  [ "point", "2", [1,2] ],
  [ "point", "3", [3.2,2] ]
]

Tryout Space

In order to try code snippets in jsfiddle,

  1. copy the code from the wiki page to the clipboard
  2. follow the link for the JSXGraph version you want to try
  3. Replace the code in the HTML section (contents of <p hidden id="init">) with the content of the clipboard
Clone this wiki locally