qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/GeographicProjection-c931c7...

2 lines
783 B
JavaScript

define(["exports","./Cartesian3-e0307675","./Cartesian2-bd414876","./defaultValue-81eec7ed","./Check-741c5f3c"],(function(e,i,t,o,s){"use strict";function n(e){this._ellipsoid=o.defaultValue(e,t.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(n.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),n.prototype.project=function(e,t){const s=this._semimajorAxis,n=e.longitude*s,r=e.latitude*s,a=e.height;return o.defined(t)?(t.x=n,t.y=r,t.z=a,t):new i.Cartesian3(n,r,a)},n.prototype.unproject=function(e,i){const s=this._oneOverSemimajorAxis,n=e.x*s,r=e.y*s,a=e.z;return o.defined(i)?(i.longitude=n,i.latitude=r,i.height=a,i):new t.Cartographic(n,r,a)},e.GeographicProjection=n}));