Normally, linear regression asks for a pair of parameters m,b such that for a set of given points $\{x_i,y_i\}$ the variance of $y-m\cdot x-b$ is minimized (this minimizes the distance in y-direction only).
Instead, I would like to find a line $y'=m\cdot x'+b$ such that the pairs $(x_i,y_i)$ have minimal perpendicular distance from that line.
I strongly suspect that the parameters (m,b) turn out to be the same in either case, but I can't find anything on the web, and when I tried the calculation by myself I found me totally out of practice with one error for each 3 lines of my calculations.