Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:16:02+00:00 2026-06-13T09:16:02+00:00

I have two GPS locations. For each I am creating a bounding box in

  • 0

I have two GPS locations. For each I am creating a bounding box in a different range.
Each bounding box has min/max latitude and min/max longitude.

Need to implement a method to detect if those two boxes overlap (don’t mind the overlap range.. only true/false). Also, this method will be integrated in a long loop so I am looking for the most efficient way to do it.

note: when saying overlap I mean – “there is at least one single point on the map that is contained in both bounding boxes”.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:16:03+00:00Added an answer on June 13, 2026 at 9:16 am

    It’s enough to check if one of the corners of one rectangle is within the other rectangle. This is true of these two hold:

    • rect1.minX or rect1.maxX is between rect2.minX and rect2.maxX
      and
    • rect1.minY or rect1.maxY is between rect2.minY and rect2.maxY

    This check should take no time at all to do, so efficiency isn’t a problem. Also, the order of the arguments is irrelevant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to use GPS in two different views. i have it set up
If I have two GPS locations, say 51.507222, -0.1275 and 48.856667, 2.350833, what formula
I have got two WGS84 coordinates, latitude and longitude in degrees. These points are
I have an application in java that uses two different threads.And for sharing data
I have a latitude and longitude that is fixed, so I used that and
I have noticed with testing GPS locations, a value such as −123 might come
I have a function that calculates the distance between two GPS coordinates. I then
I have two questions. In my app, I am getting the GPS coordinates of
We have two systems with built in GPS today I spent a little time,
Have two folders with approx. 150 java property files. In a shell script, how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.