function tileIfContainsCartographic(tile, cartographic) {
  return defined(tile) && Rectangle.contains(tile.rectangle, cartographic)
    ? tile
    : undefined;
}
Find an intersection between a ray and the globe surface that was rendered. The ray must be given in world coordinates.

@param {Ray} ray The ray to test for intersection.
@param {Scene} scene The scene.
@param {Cartesian3} [result] The object onto which to store the result.
@returns {Cartesian3|undefined} The intersection or <code>undefined</code> if none was found.

@example
// find intersection of ray through a pixel and the globe
const ray = viewer.camera.getPickRay(windowCoordinates);
const intersection = globe.pick(ray, scene);