lately I’ve been using TLines a lot, and I think it will be very useful to have member functions returning the m and b when my line is expressed in the form of y=m*x+b. This can be done using the following rather trivial code:
m = (myLine->GetY1() - myLine->GetY2())/(myLine->GetX1() - myLine->GetX2());
b = (myLine->GetX1() * myLine->GetY2() - myLine->GetX2() * myLine->GetY1())/(myLine->GetX1() - myLine->GetX2());
Many thanks in advance for considering this suggestion!