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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:45:06+00:00 2026-05-12T19:45:06+00:00

I two concentric circles on the screen and I want the circle on the

  • 0

I two concentric circles on the screen and I want the circle on the inside to move around while the user drags their finger around the outside of the larger circle. This means that I have two point, center of the larger circle and the point at which the user touched. How do I calculate where the center of the smaller circle should be?

  • 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-12T19:45:06+00:00Added an answer on May 12, 2026 at 7:45 pm

    Ok, if you’re drawing a persons eyes it is a completely different matter.

    If we start with the following values

    • re: the radius of the eye
    • rp: the radius of the pupil
    • p1 = (x1, y1): the coordinates of
      the center of the eye
    • p2 = (x2, y2): the coordinates of
      the users touch
    • v1 = [x3; y3]: the direction vector between p1 and p2.
      • x3 = (x1 - x2)
      • y3 = (y1 - y2)
    • l = sqrt((x3)^2 + (y3)^2): the length of v1

    Then do the following steps

    1. Check if the user is touching within re - rp of the middle of the eye (i.e. l < (re - rp)), it he/she is draw the pupil at p2 and do no more.
    2. Otherwise draw the pupil at x coordinate (re - rp) * x3 / l + x1 and y coordinate (re - rp) * y3 / l + y1

    If you have more than one eye, just repeat the steps for the other ones.

    I certainly hope you understand what I mean by this, if you don’t just ask away.

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

Sidebar

Related Questions

two parts.... PART 1 - I want to redirect any request to a directory
I'm making a program that let me click on the center of two concentric
Two Forms 1. SplashForm 2. MainForm I want to load MainForm AS background Process
Two entered passwords should be the same, and I want to display a notification
Two questions please: I need two foreign keys back to User, one for author
Two arrays are to be interchanged with their values, I am seeking methods to
I need to draw concentric circles in my Flex application. I am trying to
Two input boxes: when I set the first one, I want the second one
Two tables: user (id, myValue, ...) user_preferred (id, userid, preferredValue) fk userid -> user(id)
Two questions: If the user says 'no' what is the best way to handle

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.