We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intersects(line)
[]
Hi!
intersects(line) returns [] When one of Bessel's endpoints is on a horizontal line segment.
It is similar to #76 .
const { Bezier } = require("bezier-js"); const fromPos = [629, 340.5]; const fromPosCP = [791.875, 537.03515625]; const toPosCP = [741.75, 366.5]; const toPos = [920.75, 415.5]; const b = new Bezier([...fromPos, ...fromPosCP, ...toPosCP, ...toPos]); const line = { p1: { x: 900, y: 415.5 }, p2: { x: 950, y: 415.5 } }; console.log(b.intersects(line)); // []
Obviously toPos is on the line, but intersects(line) returns [].
toPos
line
The text was updated successfully, but these errors were encountered:
I can reproduce When I tilt the line a bit it works but an epsilon tilt is not enough
Sorry, something went wrong.
Ray cast using (0, 1) vector from the center of the beetle
(0, 1)
Ray cast using (1, 50) vector from the center of the beetle
(1, 50)
Could it be related to the fact that it this case the intersection occurs at the min/max point of a curve?
I think I got it wrong Will update next week with findings
No branches or pull requests
Hi!
intersects(line)
returns[]
When one of Bessel's endpoints is on a horizontal line segment.It is similar to #76 .
Obviously
toPos
is on theline
, butintersects(line)
returns[]
.The text was updated successfully, but these errors were encountered: