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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:02:28+00:00 2026-05-25T19:02:28+00:00

I need to draw a circular arc between two given points. I also have

  • 0

I need to draw a circular arc between two given points. I also have the arc’s radius. I understand that this can be done using standard canvas APIs but I need to handle the case of elliptical arcs too. This code is a generalized solution. The only problem right now is that it doesn’t work!

The mathematical concept behind this code is at https://math.stackexchange.com/questions/53093/how-to-find-the-center-of-an-ellipse.

My JS code is implementation of that. My JS code can be found at http://jsfiddle.net/BkEnz/2/. Ideally both the circles there should pass through the two little pink dots.

I hope somebody can point me towards the right direction. I have been trying to solve this for past few days now!

  • 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-25T19:02:29+00:00Added an answer on May 25, 2026 at 7:02 pm

    Fixed this issue. The corrected working code is at http://jsfiddle.net/ZxRBT.

    Notice the line

    var t = translate(-R1R2x, -R1R2y, IDENTITY_TRANSFORM());
    

    In my previous version of the code this line was

    var t = translate(-R1R2x, -R1R2y, sr);
    

    So when I was calculating the value of C1 and C2, using the following code

    C1 = compose(vut, [[R1x],[R1y],[1]]);
    C2 = compose(vut, [[R2x],[R2y],[1]]);
    

    I was also applying the sr composition over R1x,R1y and R2x,R2y, but these points were already in sr coordinate.

    This was a grave mistake which I overlooked for really a long time.

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

Sidebar

Related Questions

I need to draw a pushpin for the Bing Silverlight control that can have
Hey, Like in title can someone answer this simple question? I need draw line
I am trying to draw a figure something like this: I need to have
I need an example algorithm that will draw pixels one at a time on
The ASP page gets data uses that to draw a graph, I then need
I need to draw text onto a window HDC along a circular path using
I need to draw on a TPanel, ideally directly so I don't have another
I need to draw a graph which can be updated continuously on WinCE platform.
I need to draw extensive realtime graphics on WinCE platform. For that purpose, which
I need to draw a Pie Arc in Java with start angle 350 and

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.