Skip to content
New issue

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

point data is not returned even though type is intersecting #5

Open
obara-cct opened this issue May 20, 2021 · 3 comments
Open

point data is not returned even though type is intersecting #5

obara-cct opened this issue May 20, 2021 · 3 comments

Comments

@obara-cct
Copy link

I used checkIntersection API and got the result with type="intersecting".
I expected that return object include point data but didnt as shown below image.
May I know why how I can get intersection point from checkIntersection API?
無題

@psalaets
Copy link
Owner

That looks like a bug.

Are you able to show your code so I can see how you are calling checkIntersection?

If not, do you remember what values were passed to checkIntersection that caused this to happen?

@obara-cct
Copy link
Author

Is following code enough for you to debug?

const intersectResult=checkIntersection(lineA.p1[0],lineA.p1[1],lineA.p2[0],lineA.p2[1],lineB.p1[0],lineB.p1[1],lineB.p2[0],lineB.p2[1]);
console.log('intersectResult',intersectResult);

@psalaets
Copy link
Owner

Hmm everything looks correct there.

Can you print out lineA and lineB with console.log() and show me what values are being passed into the function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants