<p>This might sound confusing, but this is what I'm trying to achieve:</p>

<p><img src="https://i.sstatic.net/KOqaS.png" alt="Cartesian bounds of isometric object"></p>

<p>project to:</p>

<p><img src="https://i.sstatic.net/CdpU1.png" alt="Isometric bounds of isometric object"></p>

<p>I already have an algorithm in my mind, where we simply detect the corners touching the Cartesian rectangle and calculate the bounds from there, but I just wanted to see if there were more clever ways of solving this problem.</p>

<p><strong>Note</strong></p>

<ul>
<li><p>It's not a homework</p></li>
<li><p>I don't want a full answer, just a pointer, wondering if there are more clever ways of solving it.</p></li>
<li><p>The isometric object can be a rectangle, it's width and height might differ.</p></li>
</ul>

CC BY-SA 3.0
2017-06-28T13:15:11.423Z
Wouldn't the cartesian bounds of the rectangle with h=1 and w=2 be equal to the bounds of the rectangle with h=2 and w=1?
ratchet freak
CC BY-SA 3.0
2017-06-28T15:13:22.633Z
@ratchetfreak h=2 and w=1 on isometric space?

If so, I think not, the image that I posted has the same w and h on isometric space with 2:1 Cartesian bounds, but we could fit different objects with different isometric dimensions on the same Cartesian bounds.
Test
CC BY-SA 3.0
2017-06-28T15:15:41.127Z
Thinking again, my algorithm should take circles into account.
Test
<computational-geometry><geometry><2d><2d-graphics>
Rectangle bounds of isometric object to isometric bounds
Test
# Rectangle bounds of isometric object to isometric bounds

(Asked by: username_0 on 2017-06-28)

This might sound confusing, but this is what I'm trying to achieve:

![Cartesian bounds of isometric object](https://i.sstatic.net/KOqaS.png)

project to:

![Isometric bounds of isometric object](https://i.sstatic.net/CdpU1.png)

I already have an algorithm in my mind, where we simply detect the corners touching the Cartesian rectangle and calculate the bounds from there, but I just wanted to see if there were more clever ways of solving this problem.

**Note**

* It's not a homework
* I don't want a full answer, just a pointer, wondering if there are more clever ways of solving it.
* The isometric object can be a rectangle, it's width and height might differ.

**Tags:** computational-geometry, geometry, 2d, 2d-graphics

> **Comments:**
> **username_1**: Wouldn't the cartesian bounds of the rectangle with h=1 and w=2 be equal to the bounds of the rectangle with h=2 and w=1?  
> **username_0**: @username_1 h=2 and w=1 on isometric space?  If so, I think not, the image that I posted has the same w and h on isometric space with 2:1 Cartesian bounds, but we could fit different objects with different isometric dimensions on the same Cartesian bounds.  
> **username_0**: Thinking again, my algorithm should take circles into account.  

---

## 0 answers

