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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:16:21+00:00 2026-05-23T12:16:21+00:00

How can i increase the distance when i draw a ellipse from a certain

  • 0

How can i increase the distance when i draw a ellipse from a certain point?
This is the code i use to draw a ellipse in c#:

public double[] CalculatePosition(double centerX, double centerY, double angle)
{
    double[] position = new double[2];
    position[0] = Math.Cos(angle) * radiusX + centerX;
    position[1] = Math.Sin(angle) * radiusY + centerY;
    return position;
}

draw a ellipse based on a point. the function that use this, draw for example 5 ellipses, around the point.

  • 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-23T12:16:22+00:00Added an answer on May 23, 2026 at 12:16 pm

    Do you mean the size of the eclipse? In which case, you want to vary radiusX and radiusY.

    The best way to do this is to pass them as parameters to the function:

    public double[] CalculatePosition(double centerX, 
                                     double centerY, 
                                     double radiusX,
                                     double radiusY,
                                     double angle)
    {
        double[] position = new double[2];
        position[0] = Math.Cos(angle) * radiusX + centerX;
        position[1] = Math.Sin(angle) * radiusY + centerY;
        return position;
    }
    

    Then you can draw several ellipses around the same point by calling this function several times, and varying radiusX and radiusY.

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

Sidebar

Related Questions

I'm talking about the performance increase here. From all I know you can echo
I can increase the number of Worker Role (WR) instances directly from Java using
From what I can tell if I have my app on Heroku and use
This isn't a question for a real-life project; I'm only curious. We can increase
I have two tables in my Database.This can increase later on.I want to add
Are there any algorithms or tools that can increase the resolution of an image
I need a priority queue where I can increase or decrease the priority key.
Following a question posted here about how I can increase the speed on one
Can we have alternate Row color to GtkMenu items? and how to increase menu
Can somebody point me to a resource that explains how to go about having

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.