"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _projection = _interopRequireDefault(require("./projection"));
var _datum = _interopRequireDefault(require("./datum"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var smerc2bmerc = function smerc2bmerc(input, opt_output, opt_dimension) {
  var output = _projection["default"].sphericalMercator.inverse(input, opt_output, opt_dimension);
  output = _datum["default"].bd09.fromWGS84(output, output, opt_dimension);
  return _projection["default"].baiduMercator.forward(output, output, opt_dimension);
};
var bmerc2smerc = function bmerc2smerc(input, opt_output, opt_dimension) {
  var output = _projection["default"].baiduMercator.inverse(input, opt_output, opt_dimension);
  output = _datum["default"].bd09.toWGS84(output, output, opt_dimension);
  return _projection["default"].sphericalMercator.forward(output, output, opt_dimension);
};
var bmerc2ll = function bmerc2ll(input, opt_output, opt_dimension) {
  var output = _projection["default"].baiduMercator.inverse(input, opt_output, opt_dimension);
  return _datum["default"].bd09.toWGS84(output, output, opt_dimension);
};
var ll2bmerc = function ll2bmerc(input, opt_output, opt_dimension) {
  var output = _datum["default"].bd09.fromWGS84(input, opt_output, opt_dimension);
  return _projection["default"].baiduMercator.forward(output, output, opt_dimension);
};
var ll2smerc = _projection["default"].sphericalMercator.forward;
var smerc2ll = _projection["default"].sphericalMercator.inverse;
var _default = {
  smerc2bmerc: smerc2bmerc,
  bmerc2smerc: bmerc2smerc,
  bmerc2ll: bmerc2ll,
  ll2bmerc: ll2bmerc,
  ll2smerc: ll2smerc,
  smerc2ll: smerc2ll,
  datum: _datum["default"],
  projection: _projection["default"]
};
exports["default"] = _default;
//# sourceMappingURL=index.js.map
