Skip to content

Conversation

yaoyao-cn
Copy link
Contributor

in Frustum.intersectsBox, d2 is always greater than d1, so there is no need to compare d1 with 0.
just compare the max distance corner d2 with 0.

@mrdoob
Copy link
Owner

mrdoob commented Jun 27, 2018

@WestLangley looks good?

@mrdoob mrdoob added this to the r95 milestone Jun 27, 2018
@WestLangley
Copy link
Collaborator

I think this is correct. Our method does not need to differentiate between "intersects box" and "contains box", so computation of d1 is not necessary.

@mrdoob I'd say it is OK to merge this. Thanks @yaoyao-cn.

@mrdoob mrdoob merged commit 52b0b7f into mrdoob:dev Jun 28, 2018
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