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

Box3: Fixed bug in .intersectsPlane(). #14836

Merged
merged 3 commits into from
Sep 3, 2018
Merged

Box3: Fixed bug in .intersectsPlane(). #14836

merged 3 commits into from
Sep 3, 2018

Conversation

shyf1301
Copy link

@shyf1301 shyf1301 commented Sep 3, 2018

add two negative sign before both of the plane.constant and update the unit test

Fixes #14834

src/math/Box3.js Outdated
@@ -384,7 +384,7 @@ Object.assign( Box3.prototype, {

}

return ( min <= plane.constant && max >= plane.constant );
return ( min <= -plane.constant && max >= -plane.constant );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please insert a space after the signs. Otherwise the linter won't be happy...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your remind. Whitespaces added.

@Mugen87 Mugen87 mentioned this pull request Sep 3, 2018
5 tasks
@Mugen87 Mugen87 changed the title fix box3.intersectsPlane bug Box3: Fixed bug in .intersectsPlane(). Sep 3, 2018
@mrdoob mrdoob added this to the r97 milestone Sep 3, 2018
@mrdoob mrdoob merged commit e82730f into mrdoob:dev Sep 3, 2018
@mrdoob
Copy link
Owner

mrdoob commented Sep 3, 2018

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants