I am with quite a dylema here, as I need this for a game (so I am going to transform the given answers into programming code) to make a polygon around a curved line. from each line segment I have the X and Y positions, not I need to calculate all the X,Y positions around the curve like this:
The black dots are the known XY coordinates and the purple ones are the ones I want to calculate.
Please explain step-by-step how to calculate the XY of each purple point?
The order of the points has to create a polygon, so an calculation in this order would also be nice.
Thanks in advance!
Edit: The red line IS the bisector of the angle between three black points (or two blue lines) and the distance between a purple dot and a black dot is 5.0.
I created a program (source code here) thanks to the first answer but there is a little problem:
As you can see the polygon line cross themselves which shouldn't happen...
tomorrow I'm going to try to program answer #2 or wait till answer #1 will be updated.
Thanks to everyone for their time and efford!
Created the program from answer #2 and the same problem persists :(
This is the result:
The red dots are the "purple points" on one side and the blue dots are the "purple points" on the other side of the curve, at least they supposed to be.
You can see on the image that the theory is missing something.
Here is more user-friendly source code:
and the program itself:
if anyone wants the updated code, here it is: