[isInside,distToEdge] = isInsideSubmap(ndtMap,pos)
also returns the distance from the query position to the closest edge of the
submap along the X-,Y-, and
Z-axes respectively.
Starting in R2026b, isInsideSubmap is available in Point Cloud Toolbox™. In releases R2026a and before, isInsideSubmap is available in
Computer Vision Toolbox™.