Check if the first and last points of a "trajectory" object are within a given tolerance
Useful links