If anyone else is looking for this I came up with a hacky workaround: https://jsfiddle.net/uq6oj253/1/
Forgot to account for a slope of 0 -> here’s the updated jsFiddle
Hello! Thank you for your response! I did it the long way (finding where the two lines intersect) just incase anyone else comes across this problem and is looking for a solution. It is a bit messy but here it is in a jsFiddle
here are those points in a jsFiddle