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

  • Home
  • SEARCH
  • 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 7564863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:59:59+00:00 2026-05-30T13:59:59+00:00

In my processing program, I have made several circles positioned randomly. I used the

  • 0

In my processing program, I have made several circles positioned randomly. I used the distance formula to calculate if the mouse is over a certain area.

However, this algorithm fails when circles overlap because it thinks the mouse is over both circles. What is a way to only detect if the mouse is on the circle on top?

  • 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-05-30T14:00:00+00:00Added an answer on May 30, 2026 at 2:00 pm

    Not sure how you are implementing it, but one option would be to give each of your circles an index. Start at 0 and increment for each circle. Then, when your algorithm checks the circles, only use the circle with the highest index value.

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

Sidebar

Related Questions

I have many circles positioned randomly in my processing program. Each one is initiated
I have successfully written a video processing program. I used ubuntu and Netbeans for
I have created a concurrent, recursive directory traversal and file processing program, which sometimes
I'm in the processing of converting a program from Perl to Java. I have
I have written a mail-processing program, which basically slaps a template on incoming mail
I have made a java GUI program and have added a jList on that
I have a program that runs as a Windows Service which is processing files
I have a program that does text processing on a html formatted document based
I have a program as follows: a=reader.next() if *some condition holds*: #Do some processing
I am writing a simple digital image processing program. To do this I have

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.