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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:19:13+00:00 2026-06-08T12:19:13+00:00

I have declared a circle on a 9×9 matrix with radius = 1, and

  • 0

I have declared a circle on a 9×9 matrix with radius = 1, and I want to draw line on it according to the parameters.

Here is the Matrix

enter image description here

And here is the parameters in order to find beginning and end points of the line which is drawn in red.

enter image description here

h1 and h2 are the brightness values of the two regions which are seperated with red line and you don’t have to consider it.

In other words pixel 1 is (3,1), 2 is (4,1) etc so the origin is (5,5) on x,y axis. By the way, I know the angle and p.

What would be your suggestions in order to obtain the beginning and end pixels or coordinates of this red line in order to draw it with drawline function?

Thanks in advance

  • 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-08T12:19:14+00:00Added an answer on June 8, 2026 at 12:19 pm

    P will bisect the red line. Distance between the center and end of red line is the radius of the circle which you know. Now calculate the length of the red line which will be 2( square root of sum of squares radius and p).

    Calculate the relation between x and y from the equation which you have in terms of p and alpha.

    Calculate the equation of circle in terms of radius and origin(you have both).

    Solve the line’s equation and circle’s equation. As a solution you will get the two points of interaction between circle and line.

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

Sidebar

Related Questions

I have declared my model classes as found in this link ....I now want
I have declared the following enum type in which I want the first member
I have declared a variable in my .xsl file. Now I want to update
I have declared a class variable in here void downloader_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e) {
I have declared a delegate for my cocoa application here : MyAppDelegate.h @interface MyAppDelegate
I have declared Wstring as follows wstring strID When I try to find the
I have declared an EditText programmatically (i.e. not in XML), and want to apply
I have declared a variable as const char* mode; I want to get the
I have declared a variable like this @{ int i = 1; } Now,
I have declared std::priority_queue like this. priority_queue < Aircraft, vector<Aircraft>, less<Aircraft> > *q; 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.