how can i drow offset curve in jsxgraph

13 views
Skip to first unread message

auto diag services

unread,
Jun 11, 2021, 3:08:29 PM6/11/21
to JSXGraph
how can I drow offset curve in jsxgraph
urgent, please

Alfred Wassermann

unread,
Jun 11, 2021, 6:32:43 PM6/11/21
to JSXGraph
Do transformations of type "translate" fulfill your needs?
Here is an example:

var curve1 = board.create('curve', [t => Math.cos(t), t => 3 * Math.sin(2 * t)]);
var t = board.create('transform', [0.5, 1], {type: 'translate'});
var curve2 = board.create('curve', [curve1, t], {strokeColor: 'red'});


Best wishes,
Alfred

Reply all
Reply to author
Forward
0 new messages