Re: Need help with some pixel calculations

@Hooovahh@Hooovahh wrote:

I think I could do this, but I don't fully understand what you are asking for.  So if you have an XY position, you want to draw the largest rect you can, that doesn't overlap the rects that are given.  Does that mean moving to the left, right, top and bottom, until hitting a rect border, and figuring out which generates the largest area?  Meaning the XY position given might not be at the center of the rect drawn.  It might even be at the edge?  What about cases when the rect to be drawn can extend forever in one direction?

The given XY position is always the top-left of the desired rect. I'm hoping that makes it easier, as you only need to go right and down from that spot. Also, if the rect can go forever, we'll just set a max size.

DNatt, NI
0 Kudos