Linear transformation projection onto a line formula