/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@mapbox/s2@0.5.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var s2=require("./build/Release/_s2.node");module.exports=s2,s2.S2LatLng.prototype.toGeoJSON=function(){return{type:"Point",coordinates:[this.lng,this.lat]}},s2.S2Cell.prototype.toGeoJSON=function(){for(var t=[],e=0;e<4;e++)t.push(new s2.S2LatLng(this.getVertex(e)));return t.push(new s2.S2LatLng(this.getVertex(0))),{type:"Polygon",coordinates:[t.map((function(t){return[t.lng,t.lat]}))]}},s2.S2LatLngRect.prototype.toGeoJSON=function(){for(var t=[],e=0;e<4;e++)t.push(this.getVertex(e));return t.push(this.getVertex(0)),{type:"Polygon",coordinates:[[t.map((function(t){return[t.lng,t.lat]}))]]}},s2.S2Point.prototype.toArray=function(){return[this.x(),this.y(),this.z()]},s2.S2Point.prototype.toString=function(){return this.toArray().toString()};
//# sourceMappingURL=/sm/6d3ba61c7d3731a9a36c648222b9e5c7131c7eeac87ff7a072c5e10335beb9af.map