Help plot x and y in polar coordinate plane C#
hi! i need help in plotting a list of x and y points in a polar coordinate plane. i am using a Windows Form and zedgraph. pls help. thank u very much!!!
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted Mar 15, 2010, 10:13 PM EDT
if ( x == 0 && y == 0)
theta = 0
r = Math.Sqrt(x*x + y*y);
theta = Math.ASin(y/r)
if (x < 0)
(need to adjust angle for when x < 0)
theta = -Math.ASin(y/r) + Math.Pi
hamil cook6 pointsPosted Nov 4, 2013, 12:20 AM EST