function getIntersectionArea(extent1, extent2) {
  const intersection = getIntersection(extent1, extent2);
  return getArea(intersection);
}
@param {Extent} extent1 Extent 1.
@param {Extent} extent2 Extent 2.
@return {number} Intersection area.