pointOnLine function

Position of a point along a line