Tuesday 15 April 2014

drawing - C# - Curved line between 2 points -


I have 2 sets of parallel and when their angles are different, I end up at one end on one end, And an open gap on the other. I've taken care of the interaction by setting the endpoint of line 1 as the starting point of line 2. Like ...

Enter image details here

this This is the code that I've used to add lines so far ....

 for  (int i: 0; i   

I want to close the gap with a curved line which can increase the distance, what is the best way to go about this?

Use to get a smooth curve Start and end points are the start and end points of the straight line needed. You may have to use some experiment to look at the control point as you want it, because this preference is high, but in the approximate intersection of two points, the curve will have to make a good starting point to determine the control point. If you want to zoom it after that, you should move it from the project intersection to the actual interval of two rows on the left.

For clarity:

reference image

Start with the start and end points on the green dots Start closing with the control point at the intersection of the red line, and if you want to adjust it, then put a symmetrical curve take out.

Note: Using the intersection of red lines will give you a perfectly smooth transition; Other points will not be there.

No comments:

Post a Comment