Intersection of two bounding boxes

S

sparklingduce

Guest
Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!

-Swathi
 
On Tuesday, December 3, 2013 2:27:04 PM UTC-8, sparklingduce wrote:
Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!



-Swathi

I tried the command dbBBoxIntersect. It says "undefined function". Thanks!
 
On Tuesday, December 3, 2013 4:27:04 PM UTC-6, sparklingduce wrote:
Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!



-Swathi
 
On Wednesday, December 4, 2013 7:05:52 AM UTC+5:30, sparklingduce wrote:
On Tuesday, December 3, 2013 2:27:04 PM UTC-8, sparklingduce wrote:

Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!







-Swathi



I tried the command dbBBoxIntersect. It says "undefined function". Thanks!

Please use dbProduceOverlap
 
On Wednesday, December 4, 2013 3:57:04 AM UTC+5:30, sparklingduce wrote:
Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!



-Swathi

Please use dbProduceOverlap
 
On 12/17/13 05:47, Ajith V wrote:
On Wednesday, December 4, 2013 7:05:52 AM UTC+5:30, sparklingduce wrote:
On Tuesday, December 3, 2013 2:27:04 PM UTC-8, sparklingduce wrote:

Given two bounding boxes A and B. How to find if A and B intersect or overlap? Thanks!







-Swathi



I tried the command dbBBoxIntersect. It says "undefined function". Thanks!

Please use dbProduceOverlap

Not sure why you would think that dbBBoxIntersect exists...

Anyway, it's easy enough to write such a function yourself. You could
find the max of the two lowerLefts (call this a), and the min of the two
upperRights (call this b). If a is lower left of b, then they intersect
or overlap.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top