Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys!!
I wanted to ask if there is any way you can create a 90 degree angle where the lines intersect as in perpendicular bisector in visual basic charting. I am creating this graphing calculator where the user will input the values and the chart will plot those values as a line and when the user will select the option "perpendicular bisector" it will plot it as well.

What I have tried:

So far, I have used the formula of m1*m2 = -1 to find out the gradient of the perpendicular bisector and it's y-intercept and the point from where it will intersect. By adjusting the axes for like over a hundred times, i have gotten close my aim but still it does not plot at exactly 90 degree. Please help me out and let me know if there is any method that visual basic provides for this. Thank you in advance
Posted
Comments
Richard MacCutchan 5-Nov-17 12:41pm    
A perpendicular line can be plotted by increasing values of y with x=0.
Peter_in_2780 5-Nov-17 16:46pm    
That's VERTICAL, not PERPENDICULAR
Richard MacCutchan 5-Nov-17 17:47pm    
Yes, of course.
[no name] 5-Nov-17 12:42pm    
You Need to pay attention to the aspect Ratio of your Chart.
Have a look to this, even they discuss mainly Printing stuff, it should give you an idea how to control aspect Ratio:
VB.Net: High resolution printouts of the Chart control by using a Metafile. - TechNet Articles - United States (English) - TechNet Wiki[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900