@cesium/engine 9.0.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/Build/ThirdParty/Workers/pako_deflate.min.js +108 -210
  2. package/Build/ThirdParty/Workers/pako_inflate.min.js +466 -568
  3. package/Build/ThirdParty/Workers/z-worker-pako.js +56 -105
  4. package/Build/Workers/{chunk-VR5RBW52.js → chunk-26NE4LRW.js} +7 -7
  5. package/Build/Workers/{chunk-P2YAAMT2.js → chunk-26XJDV3D.js} +15 -15
  6. package/Build/Workers/{chunk-L4BW3RUA.js → chunk-2TRB253J.js} +7 -7
  7. package/Build/Workers/{chunk-NP2GYYE5.js → chunk-3PV5HQ2R.js} +6 -6
  8. package/Build/Workers/{chunk-BCU2LH5T.js → chunk-3VDHTBY5.js} +10 -10
  9. package/Build/Workers/{chunk-WHUSTDIB.js → chunk-4RG6WOXH.js} +10 -10
  10. package/Build/Workers/{chunk-P4XKB3QZ.js → chunk-5OK5JFDP.js} +5 -5
  11. package/Build/Workers/{chunk-2ZBL3MVO.js → chunk-7HLZRYGD.js} +10 -12
  12. package/Build/Workers/chunk-7PFZ4Z7C.js +961 -0
  13. package/Build/Workers/{chunk-24YTYWNB.js → chunk-A5CSB5ZE.js} +11 -13
  14. package/Build/Workers/{chunk-RMOEYCZW.js → chunk-AROLUUGS.js} +2 -2
  15. package/Build/Workers/{chunk-3NCVAGDA.js → chunk-BBBTT36L.js} +14 -14
  16. package/Build/Workers/{chunk-QKBGRKKG.js → chunk-BNT2SNWU.js} +4 -4
  17. package/Build/Workers/{chunk-LQJ5FFFR.js → chunk-CFBGPZU6.js} +11 -13
  18. package/Build/Workers/{chunk-C6OI26DR.js → chunk-CVCVMOQA.js} +1 -1
  19. package/Build/Workers/{chunk-SS4ESNE3.js → chunk-DIVFF6DK.js} +2 -2
  20. package/Build/Workers/{chunk-PXB7T27O.js → chunk-EJZVBTX4.js} +6 -6
  21. package/Build/Workers/{chunk-TZORKRNK.js → chunk-EODIOQ35.js} +1 -1
  22. package/Build/Workers/{chunk-QCQUZGXI.js → chunk-ETC45PHH.js} +5 -6
  23. package/Build/Workers/{chunk-E6WXPSJS.js → chunk-G7IAO7CW.js} +7 -7
  24. package/Build/Workers/{chunk-X2F6BEPY.js → chunk-GOQEANLM.js} +16 -16
  25. package/Build/Workers/{chunk-7COR472O.js → chunk-GUFV24F4.js} +7197 -5096
  26. package/Build/Workers/{chunk-5TIV3L26.js → chunk-GX2BWBN2.js} +13 -13
  27. package/Build/Workers/{chunk-ADOVHYWO.js → chunk-GX5LMUGZ.js} +469 -6
  28. package/Build/Workers/{chunk-2632RVPI.js → chunk-I6CW7ZE5.js} +7 -7
  29. package/Build/Workers/{chunk-YDVSBWEO.js → chunk-IF2OX6R4.js} +3 -5
  30. package/Build/Workers/{chunk-RSJXEO2A.js → chunk-IXYFH7DV.js} +95 -155
  31. package/Build/Workers/{chunk-ZNVSKMQ2.js → chunk-K5F23SZO.js} +6 -6
  32. package/Build/Workers/{chunk-MWV7IZK4.js → chunk-KTZK2UDR.js} +7 -7
  33. package/Build/Workers/{chunk-HBQPB6IH.js → chunk-LZFFO4KB.js} +12 -12
  34. package/Build/Workers/{chunk-GFA4SMXV.js → chunk-OYP23VAL.js} +11 -11
  35. package/Build/Workers/{chunk-ZYPTP7GS.js → chunk-PHT53MCH.js} +11 -11
  36. package/Build/Workers/{chunk-TJBU6GML.js → chunk-PUQR43HZ.js} +6 -6
  37. package/Build/Workers/{chunk-CO35JNNE.js → chunk-QZIWFSRM.js} +4 -4
  38. package/Build/Workers/{chunk-C3XBUYBO.js → chunk-RDR4KVPA.js} +17 -17
  39. package/Build/Workers/{chunk-YV4H2Y7M.js → chunk-RRUO4QEK.js} +4 -4
  40. package/Build/Workers/{chunk-LAQP3SCC.js → chunk-RTIT7UDN.js} +2 -2
  41. package/Build/Workers/{chunk-Z7FQLK6N.js → chunk-SC3TBKST.js} +4 -4
  42. package/Build/Workers/{chunk-GXUXEOE2.js → chunk-TDIGL45B.js} +1 -1
  43. package/Build/Workers/{chunk-EOXYZ34O.js → chunk-TP4FFUAH.js} +2 -2
  44. package/Build/Workers/{chunk-N4KXMWQU.js → chunk-U2LSTOMA.js} +2 -2
  45. package/Build/Workers/{chunk-6WF3KIF5.js → chunk-U6MTSO6A.js} +47 -84
  46. package/Build/Workers/{chunk-I37B3MZ2.js → chunk-UICVDDCQ.js} +1 -1
  47. package/Build/Workers/{chunk-DPUSFA7S.js → chunk-UKJCFXVV.js} +6 -6
  48. package/Build/Workers/{chunk-EPKE7GE3.js → chunk-UYKG3UFK.js} +5 -5
  49. package/Build/Workers/{chunk-RV7ZOSS6.js → chunk-W4OS542B.js} +13 -13
  50. package/Build/Workers/{chunk-DGDUKCJJ.js → chunk-WHDEZSAL.js} +6 -6
  51. package/Build/Workers/{chunk-NZWNZA6S.js → chunk-WOYQB5HM.js} +5 -5
  52. package/Build/Workers/{chunk-M2AYBTNH.js → chunk-WP3LCUOE.js} +13 -13
  53. package/Build/Workers/{chunk-73FKKY52.js → chunk-YGNQJ4YI.js} +5 -5
  54. package/Build/Workers/{chunk-SE4PXOEA.js → chunk-YGTWKLFY.js} +19 -19
  55. package/Build/Workers/{chunk-5R6VWLMH.js → chunk-ZHJDE6JN.js} +6 -6
  56. package/Build/Workers/combineGeometry.js +22 -24
  57. package/Build/Workers/createBoxGeometry.js +16 -18
  58. package/Build/Workers/createBoxOutlineGeometry.js +14 -16
  59. package/Build/Workers/createCircleGeometry.js +24 -26
  60. package/Build/Workers/createCircleOutlineGeometry.js +17 -19
  61. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
  62. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -31
  63. package/Build/Workers/createCorridorGeometry.js +27 -29
  64. package/Build/Workers/createCorridorOutlineGeometry.js +26 -28
  65. package/Build/Workers/createCylinderGeometry.js +18 -20
  66. package/Build/Workers/createCylinderOutlineGeometry.js +16 -18
  67. package/Build/Workers/createEllipseGeometry.js +24 -26
  68. package/Build/Workers/createEllipseOutlineGeometry.js +17 -19
  69. package/Build/Workers/createEllipsoidGeometry.js +17 -19
  70. package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -18
  71. package/Build/Workers/createFrustumGeometry.js +16 -18
  72. package/Build/Workers/createFrustumOutlineGeometry.js +18 -19
  73. package/Build/Workers/createGeometry.js +22 -24
  74. package/Build/Workers/createGroundPolylineGeometry.js +23 -25
  75. package/Build/Workers/createPlaneGeometry.js +14 -16
  76. package/Build/Workers/createPlaneOutlineGeometry.js +13 -15
  77. package/Build/Workers/createPolygonGeometry.js +32 -34
  78. package/Build/Workers/createPolygonOutlineGeometry.js +28 -30
  79. package/Build/Workers/createPolylineGeometry.js +23 -25
  80. package/Build/Workers/createPolylineVolumeGeometry.js +29 -31
  81. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -27
  82. package/Build/Workers/createRectangleGeometry.js +27 -29
  83. package/Build/Workers/createRectangleOutlineGeometry.js +18 -20
  84. package/Build/Workers/createSimplePolylineGeometry.js +21 -23
  85. package/Build/Workers/createSphereGeometry.js +17 -19
  86. package/Build/Workers/createSphereOutlineGeometry.js +16 -18
  87. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  88. package/Build/Workers/createVectorTileClampedPolylines.js +14 -16
  89. package/Build/Workers/createVectorTileGeometries.js +22 -24
  90. package/Build/Workers/createVectorTilePoints.js +12 -12
  91. package/Build/Workers/createVectorTilePolygons.js +20 -22
  92. package/Build/Workers/createVectorTilePolylines.js +14 -16
  93. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -25
  94. package/Build/Workers/createVerticesFromHeightmap.js +23 -25
  95. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -22
  96. package/Build/Workers/createWallGeometry.js +22 -24
  97. package/Build/Workers/createWallOutlineGeometry.js +21 -23
  98. package/Build/Workers/decodeDraco.js +11 -11
  99. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +12 -19
  100. package/Build/Workers/decodeI3S.js +10 -11
  101. package/Build/Workers/transcodeKTX2.js +44 -80
  102. package/Build/Workers/transferTypedArrayTest.js +1 -1
  103. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -22
  104. package/Source/Core/Ion.js +1 -1
  105. package/Source/Core/Math.js +0 -5
  106. package/Source/Core/PixelFormat.js +1 -0
  107. package/Source/Core/Rectangle.js +89 -0
  108. package/Source/Core/TaskProcessor.js +19 -3
  109. package/Source/Core/sampleTerrain.js +3 -3
  110. package/Source/DataSources/DataSourceDisplay.js +5 -0
  111. package/Source/Renderer/ShaderBuilder.js +6 -3
  112. package/Source/Scene/ArcGisMapService.js +1 -1
  113. package/Source/Scene/Billboard.js +7 -5
  114. package/Source/Scene/Cesium3DTile.js +65 -0
  115. package/Source/Scene/Cesium3DTileset.js +48 -1
  116. package/Source/Scene/ClippingPolygon.js +212 -0
  117. package/Source/Scene/ClippingPolygonCollection.js +968 -0
  118. package/Source/Scene/Globe.js +14 -0
  119. package/Source/Scene/GlobeSurfaceShaderSet.js +81 -15
  120. package/Source/Scene/GlobeSurfaceTileProvider.js +81 -1
  121. package/Source/Scene/GltfLoader.js +458 -435
  122. package/Source/Scene/GltfLoaderUtil.js +3 -12
  123. package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +23 -7
  124. package/Source/Scene/GltfStructuralMetadataLoader.js +11 -9
  125. package/Source/Scene/Label.js +1 -1
  126. package/Source/Scene/Model/AlphaPipelineStage.js +1 -1
  127. package/Source/Scene/Model/GeometryPipelineStage.js +15 -43
  128. package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +7 -0
  129. package/Source/Scene/Model/LightingPipelineStage.js +2 -4
  130. package/Source/Scene/Model/MaterialPipelineStage.js +346 -29
  131. package/Source/Scene/Model/Model.js +91 -3
  132. package/Source/Scene/Model/Model3DTileContent.js +21 -0
  133. package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +92 -0
  134. package/Source/Scene/Model/ModelSceneGraph.js +5 -0
  135. package/Source/Scene/Model/ModelUtility.js +3 -0
  136. package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -6
  137. package/Source/Scene/ModelComponents.js +169 -1
  138. package/Source/Scene/PickDepth.js +23 -15
  139. package/Source/Scene/ResourceCache.js +41 -50
  140. package/Source/Scene/ResourceCacheKey.js +41 -53
  141. package/Source/Scene/Terrain.js +2 -2
  142. package/Source/Shaders/Builtin/CzmBuiltins.js +6 -8
  143. package/Source/Shaders/Builtin/Functions/clipPolygons.glsl +37 -0
  144. package/Source/Shaders/Builtin/Functions/clipPolygons.js +39 -0
  145. package/Source/Shaders/Builtin/Functions/maximumComponent.glsl +21 -0
  146. package/Source/Shaders/Builtin/Functions/maximumComponent.js +23 -0
  147. package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +108 -44
  148. package/Source/Shaders/Builtin/Functions/pbrLighting.js +108 -44
  149. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.glsl +14 -0
  150. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.js +15 -0
  151. package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +14 -0
  152. package/Source/Shaders/Builtin/Structs/modelMaterial.js +14 -0
  153. package/Source/Shaders/GlobeFS.glsl +13 -1
  154. package/Source/Shaders/GlobeFS.js +13 -1
  155. package/Source/Shaders/GlobeVS.glsl +32 -0
  156. package/Source/Shaders/GlobeVS.js +32 -0
  157. package/Source/Shaders/Model/GeometryStageVS.glsl +1 -1
  158. package/Source/Shaders/Model/GeometryStageVS.js +1 -1
  159. package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +211 -133
  160. package/Source/Shaders/Model/ImageBasedLightingStageFS.js +212 -133
  161. package/Source/Shaders/Model/LightingStageFS.glsl +113 -48
  162. package/Source/Shaders/Model/LightingStageFS.js +113 -48
  163. package/Source/Shaders/Model/MaterialStageFS.glsl +399 -137
  164. package/Source/Shaders/Model/MaterialStageFS.js +399 -137
  165. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.glsl +6 -0
  166. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.js +8 -0
  167. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.glsl +27 -0
  168. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.js +29 -0
  169. package/Source/Shaders/Model/ModelFS.glsl +6 -0
  170. package/Source/Shaders/Model/ModelFS.js +7 -1
  171. package/Source/Shaders/Model/ModelVS.glsl +4 -0
  172. package/Source/Shaders/Model/ModelVS.js +4 -0
  173. package/Source/Shaders/PolygonSignedDistanceFS.glsl +100 -0
  174. package/Source/Shaders/PolygonSignedDistanceFS.js +101 -0
  175. package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
  176. package/index.d.ts +230 -4
  177. package/index.js +234 -229
  178. package/package.json +1 -1
  179. package/Build/Workers/chunk-2KACWKS4.js +0 -501
  180. package/Build/Workers/chunk-2XPLH3JY.js +0 -2977
  181. package/Build/Workers/chunk-X6XOMPWL.js +0 -73
  182. package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.glsl +0 -16
  183. package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.js +0 -18
  184. package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.glsl +0 -37
  185. package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.js +0 -39
  186. package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.glsl +0 -30
  187. package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.js +0 -32
  188. package/Source/Shaders/Builtin/Structs/pbrParameters.glsl +0 -16
  189. package/Source/Shaders/Builtin/Structs/pbrParameters.js +0 -18
@@ -0,0 +1,212 @@
1
+ import Check from "../Core/Check.js";
2
+ import Cartesian3 from "../Core/Cartesian3.js";
3
+ import Cartographic from "../Core/Cartographic.js";
4
+ import defaultValue from "../Core/defaultValue.js";
5
+ import defined from "../Core/defined.js";
6
+ import Ellipsoid from "../Core/Ellipsoid.js";
7
+ import CesiumMath from "../Core/Math.js";
8
+ import PolygonGeometry from "../Core/PolygonGeometry.js";
9
+ import Rectangle from "../Core/Rectangle.js";
10
+
11
+ /**
12
+ * A geodesic polygon to be used with {@link ClippingPlaneCollection} for selectively hiding regions in a model, a 3D tileset, or the globe.
13
+ * @alias ClippingPolygon
14
+ * @constructor
15
+ *
16
+ * @param {object} options Object with the following properties:
17
+ * @param {Cartesian3[]} options.positions A list of three or more Cartesian coordinates defining the outer ring of the clipping polygon.
18
+ * @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84]
19
+ *
20
+ * @example
21
+ * const positions = Cesium.Cartesian3.fromRadiansArray([
22
+ * -1.3194369277314022,
23
+ * 0.6988062530900625,
24
+ * -1.31941,
25
+ * 0.69879,
26
+ * -1.3193955980204217,
27
+ * 0.6988091578771254,
28
+ * -1.3193931220959367,
29
+ * 0.698743632490865,
30
+ * -1.3194358224045408,
31
+ * 0.6987471965556998,
32
+ * ]);
33
+ *
34
+ * const polygon = new Cesium.ClippingPolygon({
35
+ * positions: positions
36
+ * });
37
+ */
38
+ function ClippingPolygon(options) {
39
+ //>>includeStart('debug', pragmas.debug);
40
+ Check.typeOf.object("options", options);
41
+ Check.typeOf.object("options.positions", options.positions);
42
+ Check.typeOf.number.greaterThanOrEquals(
43
+ "options.positions.length",
44
+ options.positions.length,
45
+ 3
46
+ );
47
+ //>>includeEnd('debug');
48
+
49
+ this._ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.WGS84);
50
+ this._positions = [...options.positions];
51
+ }
52
+
53
+ Object.defineProperties(ClippingPolygon.prototype, {
54
+ /**
55
+ * Returns the total number of positions in the polygon, include any holes.
56
+ *
57
+ * @memberof ClippingPolygon.prototype
58
+ * @type {number}
59
+ * @readonly
60
+ */
61
+ length: {
62
+ get: function () {
63
+ return this._positions.length;
64
+ },
65
+ },
66
+ /**
67
+ * Returns the outer ring of positions.
68
+ *
69
+ * @memberof ClippingPolygon.prototype
70
+ * @type {Cartesian3[]}
71
+ * @readonly
72
+ */
73
+ positions: {
74
+ get: function () {
75
+ return this._positions;
76
+ },
77
+ },
78
+ /**
79
+ * Returns the ellipsoid used to project the polygon onto surfaces when clipping.
80
+ *
81
+ * @memberof ClippingPolygon.prototype
82
+ * @type {Ellipsoid}
83
+ * @readonly
84
+ */
85
+ ellipsoid: {
86
+ get: function () {
87
+ return this._ellipsoid;
88
+ },
89
+ },
90
+ });
91
+
92
+ /**
93
+ * Clones the ClippingPolygon without setting its ownership.
94
+ * @param {ClippingPolygon} polygon The ClippingPolygon to be cloned
95
+ * @param {ClippingPolygon} [result] The object on which to store the cloned parameters.
96
+ * @returns {ClippingPolygon} a clone of the input ClippingPolygon
97
+ */
98
+ ClippingPolygon.clone = function (polygon, result) {
99
+ //>>includeStart('debug', pragmas.debug);
100
+ Check.typeOf.object("polygon", polygon);
101
+ //>>includeEnd('debug');
102
+
103
+ if (!defined(result)) {
104
+ return new ClippingPolygon({
105
+ positions: polygon.positions,
106
+ ellipsoid: polygon.ellipsoid,
107
+ });
108
+ }
109
+
110
+ result._ellipsoid = polygon.ellipsoid;
111
+ result._positions.length = 0;
112
+ result._positions.push(...polygon.positions);
113
+ return result;
114
+ };
115
+
116
+ /**
117
+ * Compares the provided ClippingPolygons and returns
118
+ * <code>true</code> if they are equal, <code>false</code> otherwise.
119
+ *
120
+ * @param {Plane} left The first polygon.
121
+ * @param {Plane} right The second polygon.
122
+ * @returns {boolean} <code>true</code> if left and right are equal, <code>false</code> otherwise.
123
+ */
124
+ ClippingPolygon.equals = function (left, right) {
125
+ //>>includeStart('debug', pragmas.debug);
126
+ Check.typeOf.object("left", left);
127
+ Check.typeOf.object("right", right);
128
+ //>>includeEnd('debug');
129
+
130
+ return (
131
+ left.ellipsoid.equals(right.ellipsoid) && left.positions === right.positions
132
+ );
133
+ };
134
+
135
+ /**
136
+ * Computes a cartographic rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
137
+ *
138
+ * @param {Rectangle} [result] An object in which to store the result.
139
+ * @returns {Rectangle} The result rectangle
140
+ */
141
+ ClippingPolygon.prototype.computeRectangle = function (result) {
142
+ return PolygonGeometry.computeRectangleFromPositions(
143
+ this.positions,
144
+ this.ellipsoid,
145
+ undefined,
146
+ result
147
+ );
148
+ };
149
+
150
+ const scratchRectangle = new Rectangle();
151
+ const spherePointScratch = new Cartesian3();
152
+ /**
153
+ * Computes a rectangle with the spherical extents that encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
154
+ *
155
+ * @private
156
+ *
157
+ * @param {Rectangle} [result] An object in which to store the result.
158
+ * @returns {Rectangle} The result rectangle with spherical extents.
159
+ */
160
+ ClippingPolygon.prototype.computeSphericalExtents = function (result) {
161
+ if (!defined(result)) {
162
+ result = new Rectangle();
163
+ }
164
+
165
+ const rectangle = this.computeRectangle(scratchRectangle);
166
+
167
+ let spherePoint = Cartographic.toCartesian(
168
+ Rectangle.southwest(rectangle),
169
+ this.ellipsoid,
170
+ spherePointScratch
171
+ );
172
+
173
+ // Project into plane with vertical for latitude
174
+ let magXY = Math.sqrt(
175
+ spherePoint.x * spherePoint.x + spherePoint.y * spherePoint.y
176
+ );
177
+
178
+ // Use fastApproximateAtan2 for alignment with shader
179
+ let sphereLatitude = CesiumMath.fastApproximateAtan2(magXY, spherePoint.z);
180
+ let sphereLongitude = CesiumMath.fastApproximateAtan2(
181
+ spherePoint.x,
182
+ spherePoint.y
183
+ );
184
+
185
+ result.south = sphereLatitude;
186
+ result.west = sphereLongitude;
187
+
188
+ spherePoint = Cartographic.toCartesian(
189
+ Rectangle.northeast(rectangle),
190
+ this.ellipsoid,
191
+ spherePointScratch
192
+ );
193
+
194
+ // Project into plane with vertical for latitude
195
+ magXY = Math.sqrt(
196
+ spherePoint.x * spherePoint.x + spherePoint.y * spherePoint.y
197
+ );
198
+
199
+ // Use fastApproximateAtan2 for alignment with shader
200
+ sphereLatitude = CesiumMath.fastApproximateAtan2(magXY, spherePoint.z);
201
+ sphereLongitude = CesiumMath.fastApproximateAtan2(
202
+ spherePoint.x,
203
+ spherePoint.y
204
+ );
205
+
206
+ result.north = sphereLatitude;
207
+ result.east = sphereLongitude;
208
+
209
+ return result;
210
+ };
211
+
212
+ export default ClippingPolygon;