I now know how to do, Barycentric Interpolation, Herons Formula and simple algebra. Some code has been written, but not very much. Also, haven't tested the code yet. Dont forget to connect the correct scalar value to the correct point in the end.