Created
September 8, 2011 19:00
-
-
Save strangeglyph/1204325 to your computer and use it in GitHub Desktop.
This file contains 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 zonesCollide(Zone zone, Zone zone1) { | |
if (zone.x2 <= zone1.x2 && zone.x2 >= zone1.x1 && zone.z2 <= zone1.z2 && zone.z2 >= zone1.z1) { | |
return true; | |
} else if (zone.x1 <= zone1.x2 && zone.x1 >= zone1.x1 && zone.z1 <= zone1.z2 && zone.z1 >= zone1.z1) { | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment