title: What is the most efficient way to determine if a point is in any number of boxes
body: <p>I know how to check if a X,Y point is a single rectangular region, but say I have multiple regions that can potentially overlap ( the regions would have X,Y,Width,Height,Z-index ( or x1,y1,x2,y2 if that's easier -- I am not fussed on how I store that, if it's relevant )</p>
  
  <p>Are there any efficient algorithms to determine if the point is inside one of the regions without having to iterate over every region.</p>
  
  <p>I would prefer something without a long recalculation time when a region is added or removed, however that will be rarer then lookups.</p>
  
  <p>Thank you!</p>