-
Notifications
You must be signed in to change notification settings - Fork 3
"line2p"
mkraska edited this page Aug 7, 2022
·
11 revisions
[ "line2P", "label", [x1,y1], [x2,y2], f ]
line with two draggable points, meant for Mohr's circle construction.
The object returns a list of scaled co-ordinates [ [x1,y1], [x2,y2] ]
to the names
input field.
-
label
label for the line -
[x1,y1]
,[x2,y2]
initial locations of the control points (in scaled units) -
f
scale factor for grid units (obsolete since 2022 04 25, because scaling for dynamic display is made by default).
See also "circle2p" for draggable line and "grid" and Dynamic display of coordinates for grid scaling.
Dynamic intersection of two "line2p" obbjects
[
[ "grid", "x","y", -2,3,-1,2, 50, [10,10], [0,0] ],
["line2p", "label", [10,5], [20,10], 10 ]
]
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