The definition of `test_projected_vert_dist` has been moved to `Nearest2dUserData::snap_point`, and the parameters accessed within the object have been removed from the function. Additionally, the definition of `test_projected_edge_dist` has been moved to `Nearest2dUserData::snap_edge`, and the parameters accessed within the object have been removed from the function.