function nextPointUntil(point, pred) {
  while (point) {
    if (pred(point)) {
      return point;
    }

    point = nextPoint(point);
  }

  return null;
}
@method nextPointUntil

@param {BoundaryPoint} point
@param {Function} pred
@return {BoundaryPoint}