Skip to content

"moment"

Niclas17 edited this page Jul 6, 2022 · 7 revisions

[ "moment", "name", [x1, y1], [x2,y2], [x3,y3], state ]

Moment arrow 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).

In the active version, these control points can be dragged interactively. Dragging the centerpoint translates the symbol, dragging the other points changes the shape. Doubleclick on the arrow deletes an active moment symbol.

  • "name" label, typeset in MathJax math mode (stars * are replaced by small spaces \;). For input to STACK, spaces are converted to stars.
  • [x1, y1], [x2,y2], [x3,y3] center point, tail point, label point
  • state (optional, default: "locked"), can be set to "active", then the object can be moved around interactively.

Example

image

[
  [ "grid", "x","y", -5,5,-4,5, 50, [10,10], [0,0] ],
  [ "moment", "name", [2, 2], [1,2], [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