Reputation: 533
I am using intersection objects to show 2 intersection points between a circle and a line that is not infinite (straightFirst and straightLast are false).
JSX graph is treating that line as infinite even though I set alwaysIntersect false, here's my script:
var line = app.board.create('line', [[-2,-2],[1,1]], {straightFirst:false, straightLast:false })
var circle = app.board.create('circle', [[0,0],[-2,0]], { })
app.board.create('intersection', [line, circle, 0], {alwaysIntersect:false})
app.board.create('intersection', [line, circle, 1], {alwaysIntersect:false})
Output:
Expected output (it should show one point only, because the other one is not intersected)
Thank you in advance.
Upvotes: 0
Views: 119