
Equation for Line Segment
Posted:
Aug 23, 2012 12:15 AM


So, I've been searching through the internet looking for a place to put this, and I found this.. Basically, I've come up with a (new to me) way to graph a line segment other than using the cheaty way with inequalities. Given a starting point (A,B) and an ending point (C,D), using this equation, you can graph a line segment. Anyway, here's the equation.. (m is the slope of the line equal to (DB)/(CA)) y=(sqrt((mX)+(A/(1/m)))^2+sqrt((m(X))+(C/(1/m)))^2)/2+(B+D)/2
This works on the idea that you cannot graph imaginary numbers, and makes any points less than your starting point or greater than your ending point imaginary. Again, I'm not sure if this equation has been found before this, but I just thought I'd put this out there..

