New function: computeNearestPoint, that take tree angels and return the nearest valid point