a is constant, but n*pass changes because n changes
i dont know why do you use double pass = 360 / n
and after that pass2 = n * pass, do you mean pass2 = 360?
and why do you use _n?
dont forget about radians, because, i think, sin() and cos() use radians as input parameters
this is not about your previous post but one before it
Alibeg
Junior Poster in Training
81 posts since Aug 2008
Reputation Points: 11
Solved Threads: 11
double pass2 = a; //where a is angle between line (first point of polygon joined with centre of polygon) and x axis.....you might like to set pass2 to 0 in the beginning
while(k
Alibeg
Junior Poster in Training
81 posts since Aug 2008
Reputation Points: 11
Solved Threads: 11
no prob, just dont forget to give the credits to a man who gave you the formula in the first place ;) (nmaillet)
Alibeg
Junior Poster in Training
81 posts since Aug 2008
Reputation Points: 11
Solved Threads: 11