Steve:
thats the formula for the length of a line, not the midpoint =)