Here is the example: I have two regions. One region is inside of other. Region.php is a class, which contains info about region(flags, members). Here is the picture Smaller region is marked by blue concrete, the bigger one is marked by red concrete. In code they are linked with variables. PHP: $reg1 = new Region($args); //bigger region$reg2 = new Region($args); //smaller region So, how can I get the smallest? Something like this I asking: PHP: $smallestReg = *here is the statement that i asking for* I have some ideas that i tried, but no one of them helped alot. I think I can use AABB that PMMP is provided but i dont know how.
The simplest way would be to compare the distance between the two points, or you could loop over all the blocks in each region but that will take much longer (lag).