no, i assume `pnt` is somewhere on a polyline and calculate a distance from the starting of the polyline. If `pnt` is located at one of vertexes of a polyine, the distance should equal to `Polyline::getLength()`