These two lines consist of points, and points in line has no order. And two lines meet on the one spot and get receded. Check the image below to easily understand. The points is [x,y] form as array. and line is also array. if i get an input of one line array, i want two arrays of two different lines as output. How can i do this? If possible, implement in Python code or golang, If you can't, just math please.
I don't know how to question more accurately sorry.