@RUSSIA - I've been working on something fairly similar for 5 months or so and I could not figure it out. I know you have to use barycentric coordinates but I can't figure out all the math to get it working.
Do you have an email I could send my code and would you have a little time to look at it? Don't worry the code is actually fairly short.
Here is the problem:
The Known:
1, 2, 3 = The Points (X1, Y1), (X2, Y2), (X3, Y3)
a, b, c, d, e, f = Lengths of sides
The Unknown:
(X, Y) - (Random Point)
Where a, b, c, and d, e, f are not equal.
Blue lines should be dashed. They are just distance from point 1,2,3 and (X, Y).
Need to find X, Y. All coordinates are actually UV coordinates in this problem.
I looked though your code but I can't exactly figure out your math.
Thanks,
DigitalFury