Created
January 15, 2012 20:35
-
-
Save hfaulds/1617113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean collide(OctSpace space, double accuracy) | |
| { | |
| for (Plane plane : planes) | |
| if(!anyInfrontOfPlane(space, accuracy, plane)) | |
| return false; | |
| return true; | |
| } | |
| private boolean anyInfrontOfPlane(OctSpace space, double accuracy, Plane plane) { | |
| for(Vertex point : space.points) | |
| if(infrontOfPlane(point, accuracy, plane)) | |
| return true; | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment