0

Hi,

I want to do that i have a fixed center point in a frame. when i enter raduis in textbox and click replot button, i want that lines are drawn originating from that center point in such a way that their end points form a circle. (As children draw sun in drawings) But the end of lines are 1 degree apart.

Regards

5
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by s_khardenavis
0

Hi,

I want to do that i have a fixed center point in a frame. when i enter raduis in textbox and click replot button, i want that lines are drawn originating from that center point in such a way that their end points form a circle. (As children draw sun in drawings) But the end of lines are 1 degree apart.

Regards

Can you upload a picture to explain better.

0

There is no such thing as "the ends are one degree apart" in mathematics.

You probably mean you want to draw lines at angles offset from each other by one degree and originating all at the same point.

Nothing hard about that, just look at the line drawing methods and with a bit of trig you should be able to figure out how to do it.

0

here's some pseudo-basic code.

cx,cy = center of circle

for a = 1 to 360 step 2
    x = sin(a)*radius
    y = cos(a)*radius
    line cx,cy,x,y
next a
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.