Re: OT: 2D/3D math
If P1(x1,y1) - startpoint
and P2(x2,y2) - endpoint
Then equation of the line will be:
x*(y2-y1) - y*(x2-x1) - x1*y2 + x2*y1 = 0
so A = y2-y1; B = -(x2-x1); C = -(x1*y2 - x2*y1).
But how to find coordinates of the point in the cross of line and perpendicular?
|