Hi!
Im making a polygon system and i want the user to be able to click one polygon to interpolate it.
I've made an illustration that shows how this should be done.
If you dont understand what i mean, just ask!
Printable View
Hi!
Im making a polygon system and i want the user to be able to click one polygon to interpolate it.
I've made an illustration that shows how this should be done.
If you dont understand what i mean, just ask!
Basic algebra =P.
Figure out the components of a ray that starts at the red dot next to the points selected, using that point, and the point before it (find the purple lines). Find the half angles. Create a set of parametric equations for each line (google it, if you dont know what I am talking about). Substitute one equation into the other, and solve for t. Use the final t value to find the intersection point.
If you ever need to find intersection points with anything, chances are that you will use substitution. Learn it well =).
Z.
ok!
thanks! :)
do you think you could show me some code how to do it?
Knew you would ask =P.
No, It sounds like a pain in the arse, and it wouldnt help you much if I just did it for you =).
Z.
ok...
but i just dont know how to do the substitution...
could you just give me an example?
Google it =).
Z.
[edit]
Or go ask in the math forum =).
ok!
thanks anyways...