Porizm
Porizm

Reputation: 533

Intersection points between circle and line with straights off

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:

enter image description here

Expected output (it should show one point only, because the other one is not intersected)

enter image description here

Thank you in advance.

Upvotes: 0

Views: 119

Answers (0)

Related Questions