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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:07:38+00:00 2026-06-08T10:07:38+00:00

if i make an ellipse bounded by a rectangle. how can i rotate it

  • 0

if i make an ellipse bounded by a rectangle. how can i rotate it ? as in if i have rx,ry,cx,cy,topleft x,toplefy, bottomrightx,bottomrighty

iused the formula

angle=taninverse(ry/rx)
and i keep adding the angle that is angle=angle + taninverse(ry/rx)

the angle is too small to see the difference.
please provide another formula to calctulate teh angle with the given parmeteres

to have a look at the ellipse with the bounded rectangle frame
http://svg-edit.googlecode.com/svn/branches/2.5.1/editor/svg-editor.html

  • 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-08T10:07:40+00:00Added an answer on June 8, 2026 at 10:07 am

    Have you tried rotating by a larger angle to see what happens? Do the values of rx and ry change?

    If not, you probably should compute ‘atan(ry/rx)’ and store the result in a variable like so:

    double delta = Math.atan(ry / rx);
    

    Then when you rotate

    angle += delta; // or angle = angle + delta --- these are equivalent
    

    Alternatively, rather than calculating the angle from ry and rx, you may wish to simply keep a value such as

    double delta = Math.PI / 6;
    

    This simply gives the angle to rotate through without a calculation. The advantage is that you can simply set this delta variable to any value you wish, large or small. As above, you can increment angle by this delta value.

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

Sidebar

Related Questions

I draw the ellipse with the code as shown below. How can I make
I am trying to make some objects, say 12, to rotate in an ellipse
How to make android icons with transparent background using eclipse.I know that we can
I have an Ellipse defined as so <Ellipse Stroke=#FF474747 Style={StaticResource SelectedTemplate} Fill={StaticResource RedGradient} />
I have a set of Ellipse s on my Canvas . For the MouseEnter
I have to prototype a bulb shape (even an ellipse would be fine) vertical
I have a table where I'm storing Lat/Long coordinates, and I want to make
With following structure, how can I make Eclipse build the WAR file correctly? I
Can anyone tell me how to make eclipse indigo open linked page? I mean
I was looking at this excellent post: How do I make an ellipse blink?

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.