Skip to content

Instantly share code, notes, and snippets.

@hfaulds
Created January 15, 2012 20:35
Show Gist options
  • Select an option

  • Save hfaulds/1617113 to your computer and use it in GitHub Desktop.

Select an option

Save hfaulds/1617113 to your computer and use it in GitHub Desktop.
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