forEachInExtent(extent, callback) {
    return this.forEach_(this.getInExtent(extent), callback);
  }
Calls a callback function with each value in the provided extent.
@param {import("../extent.js").Extent} extent Extent.
@param {function(T): R} callback Callback.
@return {R|undefined} Callback return value.
@template R