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 7917489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:10:03+00:00 2026-06-03T15:10:03+00:00

The problem I am facing is as follows: Given two polygons defining the borders

  • 0

The problem I am facing is as follows:

Given two polygons defining the borders of a maze and a path in between (see picture below), I would like to know when I crossed the borders of the maze.

In respect to the inputs I have:

  • One file defining edges of the two polygons (only the points that
    connect straight lines)
  • One file with all waypoints I had visited, in the order of appearance

I need to calculate a score for that path based on the amount of time spent in the restricted zone.

What is the best way to do it? (Algorithm/Technology/Library) I have no technology restrictions so the solution can be anything e.g Java, C, Perl (this is my favorite), etc

I started working on a solution, but then I realized this issue must have been solved millions of times in the past and there’s no reason for “reinventing the wheel” 🙂

I am new to Geographic/Geometric kind of problems, and I would greatly appreciate any advice of what approach should I take.

Cheers

example map

  • 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-03T15:10:06+00:00Added an answer on June 3, 2026 at 3:10 pm

    This is a Point in polygon

    1. Build a list of polygons from “One file defining edges of the two
      polygons (only the points that connect straight lines)”
    2. Apply point_in_polygon() (perl implementation, your favorite)
      for each “waypoints I had visited”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem Given two integers a, b, a < b. Display its decimal expansion. You
I'm facing a problem that I assumed would be very easy to solve but...
I am facing a problem with the code below which is run on Visual Studio 2008.
I am facing problem with the control flajaxian.FileUploader i.e. after downloading the dll file
i am facing problem with ipv6 validations and ipv4 validations in JavaScript please help
I am facing problem while generating CAB file. I want to customize the INF
This is a problem am facing for long now also asked a question regarding
I am new to struts 2. I am facing problem in filling Select tag
When facing the problem of validating a property in a JSF2 application there are
Am facing a problem, while creating components through TOM API using .NET/COM Interop. Actual

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.