Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
How to transform viewport coordinate to polar coordinate ?
How to transform viewport coordinate to polar coordinate ?
Post Reply
How to transform viewport coordinate to polar coordinate ?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
CHANGMIN KIM
CHANGMIN KIM
posted 5 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 10,
Visits: 25
Hi Team,
I want to convert coordinates from the control perspective to coordinates from the chart perspective.
I know how to do this with cartesian chart, but I have no idea on how to do this with polar chart.
to be more specific,
NCartesianChart chart1 = new NCartesianChart();
nChartControl.Charts.Add(chart1);
NPolarChart chart2 = new NPolarChart();
nChartControl.Charts.Add(chart2);
...
// I know how to do this
NVector2DD ViewToCartesianScale(in MouseEventArgs e)
{
NViewToScale2DTransformation view2Scale =
new NViewToScale2DTransformation(chart1,
(int)StandardAxis.PrimaryX, (int)StandardAxis.PrimaryY);
NVector2DD cartesianCoord = new NVector2DD();
view2Scale.Transform(new NPointF(e.X, e.Y), ref cartesianCoord);
return cartesianCoord;
}
// I want to know
void ViewToPolarScale(in MouseEventArgs e, out double angle, out double radius)
{
??
}
Thanks,,
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
How to transform viewport coordinate to polar coordinate ?
CHANGMIN KIM
-
5 Years Ago
Hi Changmin, The following code shows how to transform from view to...
Nevron Support
-
5 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search