I am looking for algorithmes that find lines in a cloud of points with known (x,y) coordinates,

Points are only accepted on the line when they have a minimal deviation compared to the line and when these points are at regular distances. Each point is the position of an object and the line determines the trajectorie of this object.

I already developed a first algorithm. It works but in some cases it fails (when there are a lot of points)

thanks in advance for any suggestions,

kind regards