def isCloseToLast(paths, point, radius):
 if (len(paths) < 1):
  return False
 lastPath = paths[(-1)]
 return (abs((lastPath[(-1)] - point)) < radius)

def isCloseToLast ( paths , point , radius ) : if ( len ( paths ) < 1 ) : return False lastPath = paths [ ( - 1 ) ] return ( abs ( ( lastPath [ ( - 1 ) ] - point ) ) < radius )
determine if the point is close to the last point of the last path .