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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:54:09+00:00 2026-05-14T16:54:09+00:00

I have a rectangle in .NET in which I draw an ellipse. I know

  • 0

I have a rectangle in .NET in which I draw an ellipse.

I know the width, height and center point of that rectangle.

Of course the center point of the rectangle is also the center point of the ellipse.

I know how to calculate a point on a circle, however I have no clue about an ellipse.

I have those parameters and an angle, i need the point on the ellipse, can someone post the formula?

I saw somewhere you need to calculate 2 points in which 2 radii will go, the sum of the radii will be fixed and they will change in size accordingly.

I don’t know how to do that, I only have the rectangle height, width and center point and of course the angle I wish to find the point at.

thanks for any help
Shlomi

  • 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-14T16:54:10+00:00Added an answer on May 14, 2026 at 4:54 pm

    You can use the canonical form in polar coordinates for your problem where the width and height of a rectangle is w and h respectively.

    alt text

    alt text

    where t is an angle in radians, a is w/2 and b is h/2

    So to plot your ellipse, all you have to do is vary t from 0 to 360 degrees (in radians so that’s 0 and 2pi) and depending on how you space out t, you get the points on the ellipse.

    Since your rectangle is not centered at the origin, you will have to offset it by the coordinates of the center of the rectangle, say, (Cx,Cy)

    const double C_x = 10, C_y = 20, w = 40, h = 50;
    for(double t = 0; t <=2*pi; t+=0.01)
    {
       double X = C_x+(w/2)*cos(t);
       double Y = C_y+(h/2)*sin(t);
       // Do what you want with X & Y here 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a point in a rectangle that I need to rotate an arbitrary
I have the following for a rectangle.. x1,y1,width and height How can I find
Looking into the .NET code, Rectangle.Size returns new Size(Width, Height) . Why did Microsoft
I have a rectangle that I've created and set its individual properties like so
I have an image and a rectangle (a paragraph with a coloured background) that
I have one line (two point (x,y) (x1,y1)) and a rectangle with focus point
It seems that the WPF Rectangle shape does not have the Click event defined.
I have a .NET 2.0 app that runs just fine on XP and Vista,
I want to: Draw rectangles on a google map Have at most on rectangle
I have a WPF (.NET 3.5) control which renders about 20000 rectangles. This MyControl

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.