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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:10:30+00:00 2026-05-13T22:10:30+00:00

sorry for the confusing title, its really hard for me to explain what i

  • 0

sorry for the confusing title, its really hard for me to explain what i want. So i created this image 🙂
alt text

Ok so the two RED dots are points on an image. The distance between them isnt important.

What I want to do is, Using the coordinates for the two dots, work out the angle of the space between them (as shown by the black line between the red dots)

Then once the angle is found, on the last red dot, create two points which cross the angle of the first line. Then from that, scan a Half semicircle and get the coordinates of every pixel of the image that the orange line passes.

I dnot know if this makes any sense to you lot so i drew another picture:
alt text

As you can see in the second picture, my idea is applied to a line drawn on a black canavs. The two red dots are the starting coordinates then at the end of the two dots, a less then half semicircle is created. The part that is orange shows the pixels of the image that should be recorded.

I have no clue how to start this, so if anyone has any ideas on how i can or on what i need to do, any help is much appreciated 🙂

EDIT.
I have created this image in the hopes that it will make what i am trying to do clearer 🙂
alt text

Again sorry if this is confusing anyone as I really dont know how to explain it.

  • 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-13T22:10:30+00:00Added an answer on May 13, 2026 at 10:10 pm

    Just to clarify:

    • You have two points A & B, and you need to draw an arc
    • The arc should be a quarter circle (aka ‘half a semicircle’)
    • The first point A is to be the centre / point of rotation for an arc
    • The line defined by A & B should intersect the arc at its midpoint

    Let’s define the coordinates of point A as (Ax, Ay).
    Let’s define the distance between A & B as r (the radius of our circle/arc)

    So using basic formula for a circle, a point (x, y) will be on the circle when

    (x-Ax)^2 + (y-Ay)^2 = r^2
    

    Now you just need to limit this set to those points that are within your required quarter circle. I would suggest the easiest way to do this is to include points within a certain distance of the midpoint of the arc.

    To do this, first work out the midpoint of the arc. Let point B be defined by (Bx, By), and then define point C as the midpoint of the arc (Cx, Cy)

    Cx = Ax + (Ax-Bx)
    Cy = Ay + (Ay-By)
    

    Now, for any point on the arc, draw a chord (a line between two points on a circle) from that point (x, y) to the midpoint of the arc.

    The length of this line can be calculated by the radius of the circle and the angle between the two radii. The formula for length of a chord is 2r.sin(a/2), where r is the radius and a is the angle between the radii. We want 45 degrees either side of the midpoint, so the maximum chord length is

    2r.sin(45/2)
    

    So points within 2r.sin(45/2) of our point (Cx, Cy) will be close enough to draw a quarter circle. Your result is

    Any coordinate (x, y) such that
    (x-Ax)^2 + (y-Ay)^2 = r^2
    (x-Cx)^2 + (y-Cy)^2 <= (2r.sin(45/2))^2
    

    Good fun!

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

Sidebar

Related Questions

Sorry for the somewhat confusing title. Not sure really how to title this. My
Sorry if the title is kinda confusing, and if the Android tags don't really
Sorry but this is really confusing me and I know the answer is staring
Sorry if this sounds like a really stupid question, but I need to make
Sorry for the confusing title, but it basically says it all. Here's the structures
First off, sorry if the title is confusing! I'm working on a part of
Sorry or the confusing title! It's actually a lot simpler than it sounds. I've
I'm sorry if the title is quite confusing but I am wondering if it's
Well, sorry about the confusing title but I'm having a slightly annoying problem with
Sorry for this not being a real question, but Sometime back i remember seeing

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.