Skip to content

Conversation

@shyf1301
Copy link
Contributor

@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
}

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
Contributor 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