Use a different algorithm for determining whether point is close to line -- returns the Y offset from the line, which can be used for snapping