# Isometric Zoning Math

This topic is 4256 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

The following screenshot is a Isometric Grid. What I want to do is be able to find out what zone each tile is in. http://img226.imageshack.us/my.php?image=isometriczonehelpvi9.jpg So based upon the screenshot what math equation do I use to determine what zone a tile is in given the x,y coordinate?

##### Share on other sites

Your top row on that picture is wrong 5:24 should be 5:23

That could be a starting place to at least identify the Y
count of a systemaic cartesoan system of zones (stepping by
8 from the origin.

Likewise the X coordinates step by 4 across each zone.

If you organized the zone identifiers via a number system
then the ZONE address of any point would be:

ZX = (int)tilex / 4 (assumes rounding down to 0 for full fraction range)
ZY = (int)tiley / 8

This could then be combined into a single value

ZID = (ZX * YZONECOUNT) + ZY // YZONECOUNT being count of Y zone size of world

I prefer a Y major system but thats just a preference.

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 22
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631766
• Total Posts
3002221
×