@mapgis/cesium 17.0.4 → 17.2.2

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 (881) hide show
  1. package/Documentation/AlgorithmLib.html +29 -29
  2. package/Documentation/AngulationTool.html +5 -5
  3. package/Documentation/Animation.html +7 -7
  4. package/Documentation/AnimationTool.html +41 -41
  5. package/Documentation/AnimationViewModel.html +23 -23
  6. package/Documentation/Appearance.html +10 -10
  7. package/Documentation/ArcGISTiledElevationTerrainProvider.html +13 -13
  8. package/Documentation/ArcGisMapServerImageryProvider.html +68 -33
  9. package/Documentation/AssociativeArray.html +8 -8
  10. package/Documentation/AttributeSurfacePrimitive.html +7 -7
  11. package/Documentation/AxisAlignedBoundingBox.html +11 -11
  12. package/Documentation/BaiduImageryProvider.html +29 -29
  13. package/Documentation/BaiduMapImagerProvider.html +1 -1
  14. package/Documentation/BaiduProjection.html +7 -7
  15. package/Documentation/BaseLayerPicker.html +5 -5
  16. package/Documentation/BaseLayerPickerViewModel.html +10 -10
  17. package/Documentation/Billboard.html +31 -31
  18. package/Documentation/BillboardCollection.html +17 -17
  19. package/Documentation/BillboardGraphics.html +25 -25
  20. package/Documentation/BillboardVisualizer.html +4 -4
  21. package/Documentation/BingMapsGeocoderService.html +4 -4
  22. package/Documentation/BingMapsImageryProvider.html +35 -35
  23. package/Documentation/BlendingState.html +5 -5
  24. package/Documentation/BloomEffect.html +12 -12
  25. package/Documentation/BoundingRectangle.html +18 -18
  26. package/Documentation/BoundingSphere.html +34 -34
  27. package/Documentation/BoxEmitter.html +2 -2
  28. package/Documentation/BoxGeometry.html +7 -7
  29. package/Documentation/BoxGeometryUpdater.html +3 -3
  30. package/Documentation/BoxGraphics.html +15 -15
  31. package/Documentation/BoxOutlineGeometry.html +7 -7
  32. package/Documentation/CallbackProperty.html +7 -7
  33. package/Documentation/Camera.html +80 -80
  34. package/Documentation/CameraEventAggregator.html +13 -13
  35. package/Documentation/Cartesian2.html +44 -44
  36. package/Documentation/Cartesian3.html +54 -54
  37. package/Documentation/Cartesian4.html +46 -46
  38. package/Documentation/Cartographic.html +16 -16
  39. package/Documentation/CartographicGeocoderService.html +2 -2
  40. package/Documentation/CatmullRomSpline.html +9 -9
  41. package/Documentation/Cesium3DTile.html +12 -12
  42. package/Documentation/Cesium3DTileContent.html +14 -14
  43. package/Documentation/Cesium3DTileCustomContent.html +1 -1
  44. package/Documentation/Cesium3DTileFeature.html +10 -10
  45. package/Documentation/Cesium3DTilePointFeature.html +33 -33
  46. package/Documentation/Cesium3DTileStyle.html +31 -31
  47. package/Documentation/Cesium3DTilesInspector.html +5 -5
  48. package/Documentation/Cesium3DTilesInspectorViewModel.html +70 -70
  49. package/Documentation/Cesium3DTileset.html +91 -91
  50. package/Documentation/Cesium3DTilesetGraphics.html +8 -8
  51. package/Documentation/Cesium3DTilesetVisualizer.html +4 -4
  52. package/Documentation/CesiumHeatmap.html +3 -3
  53. package/Documentation/CesiumInspector.html +5 -5
  54. package/Documentation/CesiumInspectorViewModel.html +52 -52
  55. package/Documentation/CesiumNavigation.html +1 -1
  56. package/Documentation/CesiumTerrainProvider.html +17 -17
  57. package/Documentation/CesiumWidget.html +20 -20
  58. package/Documentation/CheckerboardMaterialProperty.html +9 -9
  59. package/Documentation/CircleEmitter.html +3 -3
  60. package/Documentation/CircleGeometry.html +5 -5
  61. package/Documentation/CircleOutlineGeometry.html +5 -5
  62. package/Documentation/CircleScanEffect.html +1 -1
  63. package/Documentation/CircleWaveMaterialProperty.html +1 -1
  64. package/Documentation/ClassificationPrimitive.html +21 -21
  65. package/Documentation/ClippingGeometry.html +4 -4
  66. package/Documentation/ClippingPlane.html +5 -5
  67. package/Documentation/ClippingPlaneCollection.html +17 -17
  68. package/Documentation/Clock.html +12 -12
  69. package/Documentation/ClockViewModel.html +14 -14
  70. package/Documentation/CollisionDetectionByRender.html +10 -10
  71. package/Documentation/Color.html +185 -185
  72. package/Documentation/ColorGeometryInstanceAttribute.html +8 -8
  73. package/Documentation/ColorMaterialProperty.html +7 -7
  74. package/Documentation/Command.html +4 -4
  75. package/Documentation/CompositeEntityCollection.html +21 -21
  76. package/Documentation/CompositeMaterialProperty.html +7 -7
  77. package/Documentation/CompositePositionProperty.html +8 -8
  78. package/Documentation/CompositeProperty.html +6 -6
  79. package/Documentation/CompressedTextureBuffer.html +8 -8
  80. package/Documentation/ConditionsExpression.html +4 -4
  81. package/Documentation/ConeEmitter.html +1 -1
  82. package/Documentation/ConstantPositionProperty.html +8 -8
  83. package/Documentation/ConstantProperty.html +8 -8
  84. package/Documentation/CoplanarPolygonGeometry.html +6 -6
  85. package/Documentation/CoplanarPolygonOutlineGeometry.html +6 -6
  86. package/Documentation/CorridorGeometry.html +6 -6
  87. package/Documentation/CorridorGeometryUpdater.html +3 -3
  88. package/Documentation/CorridorGraphics.html +23 -23
  89. package/Documentation/CorridorOutlineGeometry.html +5 -5
  90. package/Documentation/Credit.html +7 -7
  91. package/Documentation/CreditDisplay.html +11 -11
  92. package/Documentation/CubicRealPolynomial.html +3 -3
  93. package/Documentation/CullingVolume.html +4 -4
  94. package/Documentation/CustomDataSource.html +11 -11
  95. package/Documentation/CustomHeightmapTerrainProvider.html +15 -15
  96. package/Documentation/CustomProjection.html +5 -5
  97. package/Documentation/CustomShader.html +1 -1
  98. package/Documentation/CustomTilingScheme.html +16 -54
  99. package/Documentation/CutFillAnalysis.html +17 -17
  100. package/Documentation/CuttingTool.html +11 -11
  101. package/Documentation/CylinderGeometry.html +5 -5
  102. package/Documentation/CylinderGeometryUpdater.html +3 -3
  103. package/Documentation/CylinderGraphics.html +19 -19
  104. package/Documentation/CylinderOutlineGeometry.html +5 -5
  105. package/Documentation/CzmlDataSource.html +22 -22
  106. package/Documentation/DataSource.html +11 -11
  107. package/Documentation/DataSourceClock.html +12 -12
  108. package/Documentation/DataSourceCollection.html +18 -18
  109. package/Documentation/DataSourceDisplay.html +10 -10
  110. package/Documentation/DebugAppearance.html +12 -12
  111. package/Documentation/DebugCameraPrimitive.html +5 -5
  112. package/Documentation/DebugModelMatrixPrimitive.html +8 -8
  113. package/Documentation/DefaultProxy.html +2 -2
  114. package/Documentation/DeveloperError.html +4 -4
  115. package/Documentation/DirectionalLight.html +4 -4
  116. package/Documentation/DiscardEmptyTileImagePolicy.html +4 -4
  117. package/Documentation/DiscardMissingTileImagePolicy.html +3 -3
  118. package/Documentation/DistanceDisplayCondition.html +10 -10
  119. package/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html +7 -7
  120. package/Documentation/DrawElement.html +9 -9
  121. package/Documentation/DrawTool.html +4 -4
  122. package/Documentation/DynamicEntityVisualizer.html +1 -1
  123. package/Documentation/DynamicLightLineEffect.html +13 -13
  124. package/Documentation/EasingFunction.html +33 -33
  125. package/Documentation/EditTool.html +15 -15
  126. package/Documentation/EllipseGeometry.html +6 -6
  127. package/Documentation/EllipseGeometryUpdater.html +4 -4
  128. package/Documentation/EllipseGraphics.html +25 -25
  129. package/Documentation/EllipseOutlineGeometry.html +5 -5
  130. package/Documentation/Ellipsoid.html +34 -34
  131. package/Documentation/EllipsoidGeodesic.html +10 -10
  132. package/Documentation/EllipsoidGeometry.html +5 -5
  133. package/Documentation/EllipsoidGeometryUpdater.html +3 -3
  134. package/Documentation/EllipsoidGraphics.html +23 -23
  135. package/Documentation/EllipsoidOutlineGeometry.html +5 -5
  136. package/Documentation/EllipsoidRhumbLine.html +12 -12
  137. package/Documentation/EllipsoidSurfaceAppearance.html +15 -15
  138. package/Documentation/EllipsoidTangentPlane.html +14 -14
  139. package/Documentation/EllipsoidTerrainProvider.html +13 -13
  140. package/Documentation/Entity.html +40 -40
  141. package/Documentation/EntityCluster.html +11 -11
  142. package/Documentation/EntityCollection.html +17 -17
  143. package/Documentation/EntityView.html +7 -7
  144. package/Documentation/Event.html +6 -6
  145. package/Documentation/EventHelper.html +4 -4
  146. package/Documentation/Expression.html +4 -4
  147. package/Documentation/FeatureDetection.html +9 -9
  148. package/Documentation/FlattenTool.html +34 -6
  149. package/Documentation/FloodAnalysis.html +16 -16
  150. package/Documentation/FloodAnalysisReflection.html +9 -9
  151. package/Documentation/Fog.html +5 -5
  152. package/Documentation/FrameRateMonitor.html +16 -16
  153. package/Documentation/FrustumGeometry.html +5 -5
  154. package/Documentation/FrustumOutlineGeometry.html +5 -5
  155. package/Documentation/Fullscreen.html +9 -9
  156. package/Documentation/FullscreenButton.html +5 -5
  157. package/Documentation/FullscreenButtonViewModel.html +8 -8
  158. package/Documentation/GaodeImageryProvider.html +29 -29
  159. package/Documentation/GaodeProjection.html +7 -7
  160. package/Documentation/GeoJsonDataSource.html +27 -27
  161. package/Documentation/Geocoder.html +7 -7
  162. package/Documentation/GeocoderService.html +3 -3
  163. package/Documentation/GeocoderViewModel.html +14 -14
  164. package/Documentation/GeographicProjection.html +94 -4
  165. package/Documentation/GeographicTilingScheme.html +10 -10
  166. package/Documentation/Geometry.html +6 -6
  167. package/Documentation/GeometryAttribute.html +5 -5
  168. package/Documentation/GeometryAttributes.html +7 -7
  169. package/Documentation/GeometryFactory.html +2 -2
  170. package/Documentation/GeometryInstance.html +5 -5
  171. package/Documentation/GeometryInstanceAttribute.html +5 -5
  172. package/Documentation/GeometryPipeline.html +13 -13
  173. package/Documentation/GeometryUpdater.html +22 -22
  174. package/Documentation/GeometryVisualizer.html +4 -4
  175. package/Documentation/GetFeatureInfoFormat.html +1 -1
  176. package/Documentation/Globe.html +47 -47
  177. package/Documentation/GlobeEffect.html +8 -8
  178. package/Documentation/GlobeIndependentTranslucency.html +10 -10
  179. package/Documentation/GlobeTranslucency.html +7 -7
  180. package/Documentation/GoogleEarthEnterpriseImageryProvider.html +29 -29
  181. package/Documentation/GoogleEarthEnterpriseMapsProvider.html +34 -34
  182. package/Documentation/GoogleEarthEnterpriseMetadata.html +14 -14
  183. package/Documentation/GoogleEarthEnterpriseTerrainData.html +7 -7
  184. package/Documentation/GoogleEarthEnterpriseTerrainProvider.html +15 -15
  185. package/Documentation/GoogleMapImageryProvider.html +1 -1
  186. package/Documentation/Graphic.html +31 -31
  187. package/Documentation/GraphicTransformTool.html +7 -7
  188. package/Documentation/GraphicsLayer.html +27 -27
  189. package/Documentation/GregorianDate.html +9 -9
  190. package/Documentation/GridImageryProvider.html +30 -30
  191. package/Documentation/GridMaterialProperty.html +11 -11
  192. package/Documentation/GroundGeometryUpdater.html +3 -3
  193. package/Documentation/GroundPolylineGeometry.html +7 -7
  194. package/Documentation/GroundPolylinePrimitive.html +19 -19
  195. package/Documentation/GroundPrimitive.html +24 -24
  196. package/Documentation/GroundPrimitiveRectangleGenerater.html +3 -3
  197. package/Documentation/HashMap.html +12 -12
  198. package/Documentation/HeadingPitchRange.html +5 -5
  199. package/Documentation/HeadingPitchRoll.html +13 -13
  200. package/Documentation/HeightLimited.html +4 -4
  201. package/Documentation/HeightModelEffect.html +8 -8
  202. package/Documentation/HeightmapTerrainData.html +7 -7
  203. package/Documentation/HermitePolynomialApproximation.html +4 -4
  204. package/Documentation/HermiteSpline.html +12 -12
  205. package/Documentation/HilbertOrder.html +1 -1
  206. package/Documentation/HomeButton.html +5 -5
  207. package/Documentation/HomeButtonViewModel.html +5 -5
  208. package/Documentation/ImageMaterialProperty.html +10 -10
  209. package/Documentation/ImageryLayer.html +34 -34
  210. package/Documentation/ImageryLayerCollection.html +25 -25
  211. package/Documentation/ImageryLayerFeatureInfo.html +8 -8
  212. package/Documentation/ImageryProvider.html +88 -28
  213. package/Documentation/ImprovedNoise.html +1 -1
  214. package/Documentation/InfoBox.html +6 -6
  215. package/Documentation/InfoBoxViewModel.html +11 -11
  216. package/Documentation/IntersectionTests.html +11 -11
  217. package/Documentation/Intersections2D.html +4 -4
  218. package/Documentation/Interval.html +3 -3
  219. package/Documentation/Ion.html +3 -3
  220. package/Documentation/IonGeocoderService.html +2 -2
  221. package/Documentation/IonImageryProvider.html +28 -28
  222. package/Documentation/IonResource.html +39 -39
  223. package/Documentation/Iso8601.html +4 -4
  224. package/Documentation/JulianDate.html +31 -31
  225. package/Documentation/KeyboardCameraController.html +10 -10
  226. package/Documentation/KmlCamera.html +1 -1
  227. package/Documentation/KmlDataSource.html +20 -20
  228. package/Documentation/KmlFeatureData.html +9 -9
  229. package/Documentation/KmlLookAt.html +1 -1
  230. package/Documentation/KmlTour.html +12 -12
  231. package/Documentation/KmlTourFlyTo.html +5 -5
  232. package/Documentation/KmlTourWait.html +4 -4
  233. package/Documentation/Label.html +30 -30
  234. package/Documentation/LabelCollection.html +15 -15
  235. package/Documentation/LabelGraphics.html +26 -26
  236. package/Documentation/LabelVisualizer.html +4 -4
  237. package/Documentation/LagrangePolynomialApproximation.html +3 -3
  238. package/Documentation/Layers.html +56 -56
  239. package/Documentation/LeapSecond.html +3 -3
  240. package/Documentation/Light.html +3 -3
  241. package/Documentation/LineScanEffect.html +6 -6
  242. package/Documentation/LinearApproximation.html +3 -3
  243. package/Documentation/LinearSpline.html +7 -7
  244. package/Documentation/LonlatProjection.html +4 -4
  245. package/Documentation/M3DTree.html +11 -11
  246. package/Documentation/MapGIS3DTile.html +12 -12
  247. package/Documentation/MapGIS3DTileFeature.html +10 -10
  248. package/Documentation/MapGIS3DTileset.html +86 -86
  249. package/Documentation/MapGISCustomImageryProvider.html +29 -29
  250. package/Documentation/MapGISFeatureGeojsonProvider.html +9 -9
  251. package/Documentation/MapGISFeatureLayer.html +52 -52
  252. package/Documentation/MapGISFeatureProvider.html +9 -9
  253. package/Documentation/MapGISFeatureTilePrimitiveCollection.html +16 -16
  254. package/Documentation/MapGISGeojsonLayer.html +38 -38
  255. package/Documentation/MapGISGeojsonProvider.html +8 -8
  256. package/Documentation/MapGISGeojsonTilePrimitiveCollection.html +16 -16
  257. package/Documentation/MapGISLabelLayer.html +18 -18
  258. package/Documentation/MapGISM3D.html +13 -13
  259. package/Documentation/MapGISM3DSet.html +319 -311
  260. package/Documentation/MapGISM3DTileContent.html +3 -3
  261. package/Documentation/MapGISMapServerImageryProvider.html +4 -4
  262. package/Documentation/MapGISTerrainProvider.html +297 -297
  263. package/Documentation/MapGISTileAvailability.html +1098 -0
  264. package/Documentation/MapGISTileServerImageProvider.html +5 -5
  265. package/Documentation/MapGISVectorGeojsonProvider.html +9 -9
  266. package/Documentation/MapGISVectorLayer.html +50 -50
  267. package/Documentation/MapGISVectorProvider.html +9 -9
  268. package/Documentation/MapGISVectorTilePrimitiveCollection.html +16 -16
  269. package/Documentation/MapProjection.html +4 -4
  270. package/Documentation/MapboxImageryProvider.html +29 -29
  271. package/Documentation/MapboxStyleImageryProvider.html +29 -29
  272. package/Documentation/Material.html +44 -44
  273. package/Documentation/MaterialAppearance.MaterialSupport.html +4 -4
  274. package/Documentation/MaterialAppearance.html +15 -15
  275. package/Documentation/MaterialProperty.html +6 -6
  276. package/Documentation/Math.html +76 -76
  277. package/Documentation/Matrix2.html +41 -41
  278. package/Documentation/Matrix3.html +56 -56
  279. package/Documentation/Matrix4.html +76 -76
  280. package/Documentation/MeasureAreaTool.html +1 -1
  281. package/Documentation/MeasureLengthTool.html +7 -7
  282. package/Documentation/MeasureSlopeTool.html +5 -5
  283. package/Documentation/Model.html +51 -51
  284. package/Documentation/ModelAnimation.html +12 -12
  285. package/Documentation/ModelAnimationCollection.html +10 -10
  286. package/Documentation/ModelEditor.html +1 -1
  287. package/Documentation/ModelExplosion.html +15 -15
  288. package/Documentation/ModelFilterTool.html +5 -5
  289. package/Documentation/ModelGraphics.html +26 -26
  290. package/Documentation/ModelMaterial.html +5 -5
  291. package/Documentation/ModelMesh.html +4 -4
  292. package/Documentation/ModelNode.html +6 -6
  293. package/Documentation/ModelTransformTool.html +244 -17
  294. package/Documentation/ModelVisualizer.html +4 -4
  295. package/Documentation/Moon.html +7 -7
  296. package/Documentation/NavigationControl.html +1 -1
  297. package/Documentation/NavigationHelpButton.html +5 -5
  298. package/Documentation/NavigationHelpButtonViewModel.html +6 -6
  299. package/Documentation/NavigationTool.html +2 -2
  300. package/Documentation/NearFarScalar.html +12 -12
  301. package/Documentation/NeverTileDiscardPolicy.html +3 -3
  302. package/Documentation/NodeTransformationProperty.html +8 -8
  303. package/Documentation/Occluder.html +10 -10
  304. package/Documentation/OpenCageGeocoderService.html +4 -4
  305. package/Documentation/OpenStreetMapImageryProvider.html +98 -33
  306. package/Documentation/OpenWeatherImageryProvider.html +2 -2
  307. package/Documentation/OrientedBoundingBox.html +20 -20
  308. package/Documentation/OrthographicFrustum.html +14 -14
  309. package/Documentation/OrthographicOffCenterFrustum.html +13 -13
  310. package/Documentation/PackableForInterpolation.html +4 -4
  311. package/Documentation/Particle.html +13 -13
  312. package/Documentation/ParticleBurst.html +5 -5
  313. package/Documentation/ParticleEmitter.html +1 -1
  314. package/Documentation/ParticleSystem.html +29 -29
  315. package/Documentation/PathGraphics.html +12 -12
  316. package/Documentation/PathVisualizer.html +4 -4
  317. package/Documentation/PeliasGeocoderService.html +3 -3
  318. package/Documentation/PerInstanceColorAppearance.html +15 -15
  319. package/Documentation/PerformanceWatchdog.html +5 -5
  320. package/Documentation/PerformanceWatchdogViewModel.html +6 -6
  321. package/Documentation/PerspectiveFrustum.html +18 -18
  322. package/Documentation/PerspectiveOffCenterFrustum.html +14 -14
  323. package/Documentation/PinBuilder.html +5 -5
  324. package/Documentation/Plane.html +13 -13
  325. package/Documentation/PlaneGeometry.html +5 -5
  326. package/Documentation/PlaneGeometryUpdater.html +3 -3
  327. package/Documentation/PlaneGraphics.html +15 -15
  328. package/Documentation/PlaneOutlineGeometry.html +5 -5
  329. package/Documentation/PointCloudShading.html +11 -11
  330. package/Documentation/PointGraphics.html +15 -15
  331. package/Documentation/PointPrimitive.html +14 -14
  332. package/Documentation/PointPrimitiveCollection.html +15 -15
  333. package/Documentation/PointVisualizer.html +4 -4
  334. package/Documentation/PolygonGeometry.html +8 -8
  335. package/Documentation/PolygonGeometryUpdater.html +3 -3
  336. package/Documentation/PolygonGraphics.html +26 -26
  337. package/Documentation/PolygonHierarchy.html +3 -3
  338. package/Documentation/PolygonOutlineGeometry.html +6 -6
  339. package/Documentation/Polyline.html +8 -8
  340. package/Documentation/PolylineArrowMaterialProperty.html +7 -7
  341. package/Documentation/PolylineCollection.html +15 -15
  342. package/Documentation/PolylineColorAppearance.html +12 -12
  343. package/Documentation/PolylineDashMaterialProperty.html +10 -10
  344. package/Documentation/PolylineGeometry.html +5 -5
  345. package/Documentation/PolylineGeometryUpdater.html +25 -25
  346. package/Documentation/PolylineGlowMaterialProperty.html +9 -9
  347. package/Documentation/PolylineGraphics.html +17 -17
  348. package/Documentation/PolylineMaterialAppearance.html +12 -12
  349. package/Documentation/PolylineOutlineMaterialProperty.html +9 -9
  350. package/Documentation/PolylineTrailLinkMaterialProperty.html +1 -1
  351. package/Documentation/PolylineVisualizer.html +4 -4
  352. package/Documentation/PolylineVolumeAnimationGeometry.html +14 -14
  353. package/Documentation/PolylineVolumeGeometry.html +5 -5
  354. package/Documentation/PolylineVolumeGeometryUpdater.html +3 -3
  355. package/Documentation/PolylineVolumeGraphics.html +17 -17
  356. package/Documentation/PolylineVolumeOutlineGeometry.html +5 -5
  357. package/Documentation/PositionProperty.html +7 -7
  358. package/Documentation/PositionPropertyArray.html +8 -8
  359. package/Documentation/PostProcessStage.html +16 -16
  360. package/Documentation/PostProcessStageCollection.html +13 -13
  361. package/Documentation/PostProcessStageComposite.html +11 -11
  362. package/Documentation/PostProcessStageLibrary.html +15 -15
  363. package/Documentation/Primitive.html +120 -21
  364. package/Documentation/PrimitiveCollection.html +15 -15
  365. package/Documentation/ProjectionPicker.html +5 -5
  366. package/Documentation/ProjectionPickerViewModel.html +13 -13
  367. package/Documentation/Property.html +5 -5
  368. package/Documentation/PropertyArray.html +6 -6
  369. package/Documentation/PropertyBag.html +10 -10
  370. package/Documentation/ProviderViewModel.html +7 -7
  371. package/Documentation/Proxy.html +2 -2
  372. package/Documentation/QuadraticRealPolynomial.html +3 -3
  373. package/Documentation/QuantizedMeshTerrainData.html +7 -7
  374. package/Documentation/QuarticRealPolynomial.html +3 -3
  375. package/Documentation/Quaternion.html +45 -45
  376. package/Documentation/QuaternionSpline.html +7 -7
  377. package/Documentation/Queue.html +9 -9
  378. package/Documentation/RadarMaterialProperty.html +1 -1
  379. package/Documentation/RadarScanEffect.html +3 -3
  380. package/Documentation/Ray.html +5 -5
  381. package/Documentation/ReImg.html +2 -2
  382. package/Documentation/Rectangle.html +35 -35
  383. package/Documentation/RectangleGeometry.html +6 -6
  384. package/Documentation/RectangleGeometryUpdater.html +3 -3
  385. package/Documentation/RectangleGraphics.html +23 -23
  386. package/Documentation/RectangleOutlineGeometry.html +5 -5
  387. package/Documentation/ReferenceProperty.html +13 -13
  388. package/Documentation/Request.html +14 -14
  389. package/Documentation/RequestErrorEvent.html +5 -5
  390. package/Documentation/RequestScheduler.html +5 -5
  391. package/Documentation/ResetViewNavigationControl.html +7 -7
  392. package/Documentation/Resource.html +54 -54
  393. package/Documentation/RoamParticle.html +25 -25
  394. package/Documentation/RuntimeError.html +4 -4
  395. package/Documentation/SampleElevationTool.html +2 -2
  396. package/Documentation/SampledPositionProperty.html +20 -20
  397. package/Documentation/SampledProperty.html +19 -19
  398. package/Documentation/Scene.html +119 -119
  399. package/Documentation/SceneLayer.html +31 -31
  400. package/Documentation/SceneModePicker.html +5 -5
  401. package/Documentation/SceneModePickerViewModel.html +15 -15
  402. package/Documentation/SceneProjector.html +30 -30
  403. package/Documentation/SceneProjectorEx.html +19 -19
  404. package/Documentation/SceneTransforms.html +3 -3
  405. package/Documentation/ScreenSpaceCameraController.html +25 -25
  406. package/Documentation/ScreenSpaceEventHandler.html +8 -8
  407. package/Documentation/SearchlightEffect.html +4 -4
  408. package/Documentation/SelectTool.html +4 -4
  409. package/Documentation/SelectionIndicator.html +5 -5
  410. package/Documentation/SelectionIndicatorViewModel.html +12 -12
  411. package/Documentation/ShadowAnalysis.html +12 -12
  412. package/Documentation/ShadowMap.html +8 -8
  413. package/Documentation/ShadowRateAnalysis.html +14 -14
  414. package/Documentation/ShowGeometryInstanceAttribute.html +6 -6
  415. package/Documentation/Simon1994PlanetaryPositions.html +3 -3
  416. package/Documentation/SimplePolylineGeometry.html +5 -5
  417. package/Documentation/SingleTileImageryProvider.html +29 -29
  418. package/Documentation/SkyAtmosphere.html +9 -9
  419. package/Documentation/SkyBox.html +6 -6
  420. package/Documentation/SkyLineAnalysis.html +3 -3
  421. package/Documentation/SphereEmitter.html +2 -2
  422. package/Documentation/SphereGeometry.html +5 -5
  423. package/Documentation/SphereOutlineGeometry.html +5 -5
  424. package/Documentation/Spherical.html +13 -13
  425. package/Documentation/Spline.html +7 -7
  426. package/Documentation/StableParticle.html +28 -28
  427. package/Documentation/StripeMaterialProperty.html +11 -11
  428. package/Documentation/Style.html +26 -26
  429. package/Documentation/StyleExpression.html +3 -3
  430. package/Documentation/Sun.html +5 -5
  431. package/Documentation/SunLight.html +3 -3
  432. package/Documentation/SvgPathBindingHandler.html +2 -2
  433. package/Documentation/TaskProcessor.html +5 -5
  434. package/Documentation/TerrainAnalyse.html +14 -14
  435. package/Documentation/TerrainData.html +7 -7
  436. package/Documentation/TerrainProfile.html +4 -4
  437. package/Documentation/TerrainProvider.html +16 -16
  438. package/Documentation/Texture3D.html +1 -1
  439. package/Documentation/ThemeManager.html +14 -14
  440. package/Documentation/TiandituImageryProvider.html +4 -4
  441. package/Documentation/TileAvailability.html +6 -6
  442. package/Documentation/TileCoordinatesImageryProvider.html +28 -28
  443. package/Documentation/TileDiscardPolicy.html +3 -3
  444. package/Documentation/TileMapServiceImageryProvider.html +98 -33
  445. package/Documentation/TileProviderError.html +12 -12
  446. package/Documentation/TilingScheme.html +10 -10
  447. package/Documentation/TimeDynamicImagery.html +6 -6
  448. package/Documentation/TimeDynamicPointCloud.html +16 -16
  449. package/Documentation/TimeInterval.html +21 -21
  450. package/Documentation/TimeIntervalCollection.html +23 -23
  451. package/Documentation/TimeIntervalCollectionPositionProperty.html +8 -8
  452. package/Documentation/TimeIntervalCollectionProperty.html +6 -6
  453. package/Documentation/Timeline.html +6 -6
  454. package/Documentation/ToggleButtonViewModel.html +4 -4
  455. package/Documentation/Tooltip.html +5 -5
  456. package/Documentation/TransactionImplement.html +5 -5
  457. package/Documentation/Transforms.html +16 -16
  458. package/Documentation/TranslationRotationScale.html +5 -5
  459. package/Documentation/TriangulationTool.html +8 -8
  460. package/Documentation/TridiagonalSystemSolver.html +2 -2
  461. package/Documentation/TrustedServers.html +5 -5
  462. package/Documentation/UrlTemplateImageryProvider.html +130 -33
  463. package/Documentation/UserInterfaceControl.html +10 -10
  464. package/Documentation/VRButton.html +5 -5
  465. package/Documentation/VRButtonViewModel.html +8 -8
  466. package/Documentation/VRTheWorldTerrainProvider.html +13 -13
  467. package/Documentation/VelocityOrientationProperty.html +7 -7
  468. package/Documentation/VelocityVectorProperty.html +7 -7
  469. package/Documentation/VertexFormat.html +18 -18
  470. package/Documentation/VideoSynchronizer.html +7 -7
  471. package/Documentation/Viewer.html +56 -56
  472. package/Documentation/ViewportQuad.html +7 -7
  473. package/Documentation/ViewshedAnalysis.html +190 -10
  474. package/Documentation/VisiblityAnalysis.html +13 -13
  475. package/Documentation/VisualAnalysisManager.html +179 -7
  476. package/Documentation/Visualizer.html +4 -4
  477. package/Documentation/VoxelPrimitive.html +9 -9
  478. package/Documentation/WallGeometry.html +6 -6
  479. package/Documentation/WallGeometryUpdater.html +3 -3
  480. package/Documentation/WallGraphics.html +17 -17
  481. package/Documentation/WallOutlineGeometry.html +6 -6
  482. package/Documentation/WaterReflection.html +9 -9
  483. package/Documentation/WeatherEffect.html +8 -8
  484. package/Documentation/WebMapServiceImageryProvider.html +36 -36
  485. package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
  486. package/Documentation/WebMercatorProjection.html +97 -7
  487. package/Documentation/WebMercatorTilingScheme.html +10 -10
  488. package/Documentation/WeightSpline.html +7 -7
  489. package/Documentation/WfsProvider.html +9 -9
  490. package/Documentation/Wind3D.html +13 -13
  491. package/Documentation/WindowLightEffect.html +4 -4
  492. package/Documentation/ZoomNavigationControl.html +5 -5
  493. package/Documentation/global.html +141 -141
  494. package/Documentation/global.html#ArcType +4 -4
  495. package/Documentation/global.html#Axis +11 -11
  496. package/Documentation/global.html#BaiduProject +19 -19
  497. package/Documentation/global.html#BingMapsStyle +11 -11
  498. package/Documentation/global.html#BlendEquation +6 -6
  499. package/Documentation/global.html#BlendFunction +16 -16
  500. package/Documentation/global.html#BlendOption +4 -4
  501. package/Documentation/global.html#CameraEventType +6 -6
  502. package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
  503. package/Documentation/global.html#ClassificationType +4 -4
  504. package/Documentation/global.html#ClippingGeometryType +8 -8
  505. package/Documentation/global.html#ClockRange +4 -4
  506. package/Documentation/global.html#ClockStep +4 -4
  507. package/Documentation/global.html#ColorBlendMode +4 -4
  508. package/Documentation/global.html#ComponentDatatype +15 -15
  509. package/Documentation/global.html#CoordnateTransform +6 -6
  510. package/Documentation/global.html#CornerType +4 -4
  511. package/Documentation/global.html#CullFace +4 -4
  512. package/Documentation/global.html#DepthFunction +9 -9
  513. package/Documentation/global.html#ExtrapolationType +4 -4
  514. package/Documentation/global.html#GeocodeType +3 -3
  515. package/Documentation/global.html#HeightReference +4 -4
  516. package/Documentation/global.html#HeightmapEncoding +3 -3
  517. package/Documentation/global.html#HorizontalOrigin +4 -4
  518. package/Documentation/global.html#ImagerySplitDirection +4 -4
  519. package/Documentation/global.html#IndexDatatype +9 -9
  520. package/Documentation/global.html#InterceptorsUtil +1 -1
  521. package/Documentation/global.html#Intersect +4 -4
  522. package/Documentation/global.html#IonWorldImageryStyle +4 -4
  523. package/Documentation/global.html#KeyboardEventModifier +4 -4
  524. package/Documentation/global.html#LabelStyle +4 -4
  525. package/Documentation/global.html#LightingMode +3 -3
  526. package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
  527. package/Documentation/global.html#MapMode2D +3 -3
  528. package/Documentation/global.html#ModelAnimationLoop +4 -4
  529. package/Documentation/global.html#ModelExplosionType +5 -5
  530. package/Documentation/global.html#OutlineRenderMode +4 -4
  531. package/Documentation/global.html#Pass +17 -17
  532. package/Documentation/global.html#PixelDatatype +10 -10
  533. package/Documentation/global.html#PixelFormat +21 -21
  534. package/Documentation/global.html#PointLight +1 -1
  535. package/Documentation/global.html#PostProcessStageSampleMode +3 -3
  536. package/Documentation/global.html#PrimitiveType +8 -8
  537. package/Documentation/global.html#ReferenceFrame +3 -3
  538. package/Documentation/global.html#RequestState +7 -7
  539. package/Documentation/global.html#RequestType +5 -5
  540. package/Documentation/global.html#SceneMode +6 -6
  541. package/Documentation/global.html#ScreenSpaceEventType +16 -16
  542. package/Documentation/global.html#SectionRender +1 -1
  543. package/Documentation/global.html#ShadowMode +5 -5
  544. package/Documentation/global.html#ShadowRateDrawCommand +3 -3
  545. package/Documentation/global.html#SpotLight +1 -1
  546. package/Documentation/global.html#Spyglass +1 -1
  547. package/Documentation/global.html#StencilFunction +9 -9
  548. package/Documentation/global.html#StencilOperation +9 -9
  549. package/Documentation/global.html#StripeOrientation +3 -3
  550. package/Documentation/global.html#SwipeModeType +7 -7
  551. package/Documentation/global.html#SwiperController +1 -1
  552. package/Documentation/global.html#TextureMagnificationFilter +3 -3
  553. package/Documentation/global.html#TextureMinificationFilter +7 -7
  554. package/Documentation/global.html#TimeStandard +3 -3
  555. package/Documentation/global.html#TopoJSONUtil +1 -1
  556. package/Documentation/global.html#UrlUtil +1 -1
  557. package/Documentation/global.html#VerticalOrigin +5 -5
  558. package/Documentation/global.html#Visibility +4 -4
  559. package/Documentation/global.html#WebGLConstants +583 -583
  560. package/Documentation/global.html#WindingOrder +3 -3
  561. package/Documentation/global.html#XmlUtil +137 -2
  562. package/Documentation/global.html#angle +1 -1
  563. package/Documentation/global.html#barycentricCoordinates +1 -1
  564. package/Documentation/global.html#binarySearch +1 -1
  565. package/Documentation/global.html#binarySearchComparator +1 -1
  566. package/Documentation/global.html#buildModuleUrl +3 -3
  567. package/Documentation/global.html#cancelAnimationFrame +1 -1
  568. package/Documentation/global.html#clippingFillImage +1 -1
  569. package/Documentation/global.html#clone +1 -1
  570. package/Documentation/global.html#color +3 -3
  571. package/Documentation/global.html#combine +1 -1
  572. package/Documentation/global.html#createCommand +1 -1
  573. package/Documentation/global.html#createCommonTileInfo +3 -1
  574. package/Documentation/global.html#createElevationBandMaterial +1 -1
  575. package/Documentation/global.html#createElevationBandMaterialBand +1 -1
  576. package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
  577. package/Documentation/global.html#createGuid +1 -1
  578. package/Documentation/global.html#createOsmBuildings +1 -1
  579. package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
  580. package/Documentation/global.html#createWorldImagery +1 -1
  581. package/Documentation/global.html#createWorldTerrain +1 -1
  582. package/Documentation/global.html#decay +2 -2
  583. package/Documentation/global.html#defaultValue +2 -2
  584. package/Documentation/global.html#defined +1 -1
  585. package/Documentation/global.html#destroyObject +1 -1
  586. package/Documentation/global.html#direction +2 -2
  587. package/Documentation/global.html#distance +2 -2
  588. package/Documentation/global.html#enableExplosion +1 -1
  589. package/Documentation/global.html#exportKml +1 -1
  590. package/Documentation/global.html#exportKmlModelCallback +1 -1
  591. package/Documentation/global.html#exportKmlResultKml +1 -1
  592. package/Documentation/global.html#exportKmlResultKmz +1 -1
  593. package/Documentation/global.html#formatError +1 -1
  594. package/Documentation/global.html#getAbsoluteUri +1 -1
  595. package/Documentation/global.html#getBaseUri +1 -1
  596. package/Documentation/global.html#getExtensionFromUri +1 -1
  597. package/Documentation/global.html#getFilenameFromUri +1 -1
  598. package/Documentation/global.html#getImagePixels +1 -1
  599. package/Documentation/global.html#getLayerToUse +150 -0
  600. package/Documentation/global.html#getTimestamp +1 -1
  601. package/Documentation/global.html#getViewModel +1 -1
  602. package/Documentation/global.html#hasText +1 -1
  603. package/Documentation/global.html#id +3 -3
  604. package/Documentation/global.html#intensity +3 -3
  605. package/Documentation/global.html#isGeographic +1 -1
  606. package/Documentation/global.html#isLeapYear +1 -1
  607. package/Documentation/global.html#mergeSort +1 -1
  608. package/Documentation/global.html#mergeSortComparator +1 -1
  609. package/Documentation/global.html#objectToQuery +1 -1
  610. package/Documentation/global.html#penumbra +1 -1
  611. package/Documentation/global.html#pointInsideTriangle +1 -1
  612. package/Documentation/global.html#position +2 -2
  613. package/Documentation/global.html#queryToObject +1 -1
  614. package/Documentation/global.html#requestAnimationFrame +1 -1
  615. package/Documentation/global.html#requestAnimationFrameCallback +1 -1
  616. package/Documentation/global.html#sampleTerrain +1 -1
  617. package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
  618. package/Documentation/global.html#show +1 -1
  619. package/Documentation/global.html#startTime +1 -1
  620. package/Documentation/global.html#subdivideArray +1 -1
  621. package/Documentation/global.html#terrainProvider +1 -1
  622. package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
  623. package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
  624. package/Documentation/global.html#viewerDragDropMixin +8 -8
  625. package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
  626. package/Documentation/global.html#writeTextToCanvas +1 -1
  627. package/Documentation/types.txt +1 -1
  628. package/README.md +91 -25
  629. package/dist/Cesium.d.ts +719 -84
  630. package/dist/Cesium.js +298 -19
  631. package/dist/Workers/Color-ff1fdef4.js +1 -0
  632. package/dist/Workers/PrimitivePipeline-a7cf99d1.js +1 -0
  633. package/dist/Workers/combineGeometry.js +1 -1
  634. package/dist/Workers/createBoxGeometry.js +1 -1
  635. package/dist/Workers/createBoxOutlineGeometry.js +1 -1
  636. package/dist/Workers/createCircleGeometry.js +1 -1
  637. package/dist/Workers/createCircleOutlineGeometry.js +1 -1
  638. package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
  639. package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  640. package/dist/Workers/createCorridorGeometry.js +1 -1
  641. package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
  642. package/dist/Workers/createCylinderGeometry.js +1 -1
  643. package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
  644. package/dist/Workers/createEllipseGeometry.js +1 -1
  645. package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
  646. package/dist/Workers/createEllipsoidGeometry.js +1 -1
  647. package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
  648. package/dist/Workers/createFrustumGeometry.js +1 -1
  649. package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
  650. package/dist/Workers/createGeometry.js +1 -1
  651. package/dist/Workers/createGroundPolylineGeometry.js +1 -1
  652. package/dist/Workers/createPlaneGeometry.js +1 -1
  653. package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
  654. package/dist/Workers/createPolygonGeometry.js +1 -1
  655. package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
  656. package/dist/Workers/createPolylineGeometry.js +1 -1
  657. package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
  658. package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  659. package/dist/Workers/createRectangleGeometry.js +1 -1
  660. package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
  661. package/dist/Workers/createSimplePolylineGeometry.js +1 -1
  662. package/dist/Workers/createSphereGeometry.js +1 -1
  663. package/dist/Workers/createSphereOutlineGeometry.js +1 -1
  664. package/dist/Workers/createVectorTileGeometries.js +1 -1
  665. package/dist/Workers/createVectorTilePolygons.js +1 -1
  666. package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  667. package/dist/Workers/createVerticesFromHeightmap.js +1 -1
  668. package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  669. package/dist/Workers/createWallGeometry.js +1 -1
  670. package/dist/Workers/createWallOutlineGeometry.js +1 -1
  671. package/dist/Workers/uncompressZip.js +1 -1
  672. package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  673. package/package.json +1 -1
  674. package/Documentation/M3DTile.html +0 -854
  675. package/Documentation/M3DTileFeature.html +0 -1113
  676. package/Documentation/M3DTileset.html +0 -4589
  677. package/Documentation/global.html#inherits +0 -150
  678. package/dist/ThirdParty/unzip.min.js +0 -1
  679. package/dist/Workers/AttributeCompression-7a920947.js +0 -1
  680. package/dist/Workers/AttributeCompression-b9605c73.js +0 -1
  681. package/dist/Workers/AttributeCompression-ceaf1f7d.js +0 -1
  682. package/dist/Workers/AxisAlignedBoundingBox-3005be1a.js +0 -1
  683. package/dist/Workers/AxisAlignedBoundingBox-6524b214.js +0 -1
  684. package/dist/Workers/AxisAlignedBoundingBox-73a9d462.js +0 -1
  685. package/dist/Workers/AxisAlignedBoundingBox-cf02d6c7.js +0 -1
  686. package/dist/Workers/AxisAlignedBoundingBox-d2a93b66.js +0 -1
  687. package/dist/Workers/AxisAlignedBoundingBox-fe8fad3e.js +0 -1
  688. package/dist/Workers/BoundingRectangle-2bb5d73d.js +0 -1
  689. package/dist/Workers/BoundingRectangle-487613f3.js +0 -1
  690. package/dist/Workers/BoundingRectangle-7f4e0022.js +0 -1
  691. package/dist/Workers/BoundingRectangle-8d042be0.js +0 -1
  692. package/dist/Workers/BoundingRectangle-b3ae8525.js +0 -1
  693. package/dist/Workers/BoundingRectangle-ce593811.js +0 -1
  694. package/dist/Workers/BoxGeometry-2d60329e.js +0 -1
  695. package/dist/Workers/BoxGeometry-3726be8b.js +0 -1
  696. package/dist/Workers/BoxGeometry-76f70c3f.js +0 -1
  697. package/dist/Workers/BoxGeometry-91ce90fe.js +0 -1
  698. package/dist/Workers/BoxGeometry-d1b4ef4f.js +0 -1
  699. package/dist/Workers/BoxGeometry-f55ff093.js +0 -1
  700. package/dist/Workers/Cartesian2-078e6458.js +0 -1
  701. package/dist/Workers/Cartesian2-c1eb9da0.js +0 -1
  702. package/dist/Workers/Check-f996273c.js +0 -1
  703. package/dist/Workers/Color-3aa21182.js +0 -1
  704. package/dist/Workers/Color-527894a9.js +0 -1
  705. package/dist/Workers/Color-68105b00.js +0 -1
  706. package/dist/Workers/Color-d7f86623.js +0 -1
  707. package/dist/Workers/Color-e9b0b56b.js +0 -1
  708. package/dist/Workers/Color-fb7b0391.js +0 -1
  709. package/dist/Workers/ComponentDatatype-e44126e4.js +0 -1
  710. package/dist/Workers/CoplanarPolygonGeometryLibrary-4529853e.js +0 -1
  711. package/dist/Workers/CoplanarPolygonGeometryLibrary-bd04145a.js +0 -1
  712. package/dist/Workers/CoplanarPolygonGeometryLibrary-c9ea5c4a.js +0 -1
  713. package/dist/Workers/CoplanarPolygonGeometryLibrary-cd63dc83.js +0 -1
  714. package/dist/Workers/CoplanarPolygonGeometryLibrary-df225097.js +0 -1
  715. package/dist/Workers/CoplanarPolygonGeometryLibrary-ed9489b1.js +0 -1
  716. package/dist/Workers/CorridorGeometryLibrary-259dc831.js +0 -1
  717. package/dist/Workers/CorridorGeometryLibrary-353eec0a.js +0 -1
  718. package/dist/Workers/CorridorGeometryLibrary-4c3150e8.js +0 -1
  719. package/dist/Workers/CorridorGeometryLibrary-6546be88.js +0 -1
  720. package/dist/Workers/CorridorGeometryLibrary-83c470f2.js +0 -1
  721. package/dist/Workers/CorridorGeometryLibrary-90fffecc.js +0 -1
  722. package/dist/Workers/CylinderGeometry-325283f2.js +0 -1
  723. package/dist/Workers/CylinderGeometry-5f25fc13.js +0 -1
  724. package/dist/Workers/CylinderGeometry-6c32efdc.js +0 -1
  725. package/dist/Workers/CylinderGeometry-7cfc0752.js +0 -1
  726. package/dist/Workers/CylinderGeometry-a8375e63.js +0 -1
  727. package/dist/Workers/CylinderGeometry-c16b0480.js +0 -1
  728. package/dist/Workers/CylinderGeometryLibrary-88cb80d2.js +0 -1
  729. package/dist/Workers/EllipseGeometry-4dc2f3cd.js +0 -1
  730. package/dist/Workers/EllipseGeometry-5bc7efb7.js +0 -1
  731. package/dist/Workers/EllipseGeometry-7ba3aa6f.js +0 -1
  732. package/dist/Workers/EllipseGeometry-9a5145f6.js +0 -1
  733. package/dist/Workers/EllipseGeometry-a00d9fde.js +0 -1
  734. package/dist/Workers/EllipseGeometry-d5153296.js +0 -1
  735. package/dist/Workers/EllipseGeometryLibrary-46efe941.js +0 -1
  736. package/dist/Workers/EllipseGeometryLibrary-4c7e22bb.js +0 -1
  737. package/dist/Workers/EllipseGeometryLibrary-716ccbc1.js +0 -1
  738. package/dist/Workers/EllipseGeometryLibrary-8b1f8e47.js +0 -1
  739. package/dist/Workers/EllipseGeometryLibrary-9dd8ed16.js +0 -1
  740. package/dist/Workers/EllipseGeometryLibrary-cde71e7f.js +0 -1
  741. package/dist/Workers/EllipseOutlineGeometry-18088f7f.js +0 -1
  742. package/dist/Workers/EllipseOutlineGeometry-5b7ad7d6.js +0 -1
  743. package/dist/Workers/EllipseOutlineGeometry-72c1fd73.js +0 -1
  744. package/dist/Workers/EllipseOutlineGeometry-97648130.js +0 -1
  745. package/dist/Workers/EllipseOutlineGeometry-c0b0a9a4.js +0 -1
  746. package/dist/Workers/EllipseOutlineGeometry-e46b4af5.js +0 -1
  747. package/dist/Workers/EllipsoidGeodesic-2992081b.js +0 -1
  748. package/dist/Workers/EllipsoidGeodesic-a0581819.js +0 -1
  749. package/dist/Workers/EllipsoidGeodesic-e1197ec2.js +0 -1
  750. package/dist/Workers/EllipsoidGeometry-5af792d2.js +0 -1
  751. package/dist/Workers/EllipsoidGeometry-751dd3dc.js +0 -1
  752. package/dist/Workers/EllipsoidGeometry-9c399bf7.js +0 -1
  753. package/dist/Workers/EllipsoidGeometry-ad61339f.js +0 -1
  754. package/dist/Workers/EllipsoidGeometry-d0a3d570.js +0 -1
  755. package/dist/Workers/EllipsoidGeometry-d28fa7b5.js +0 -1
  756. package/dist/Workers/EllipsoidOutlineGeometry-14372733.js +0 -1
  757. package/dist/Workers/EllipsoidOutlineGeometry-34940155.js +0 -1
  758. package/dist/Workers/EllipsoidOutlineGeometry-8ca051b2.js +0 -1
  759. package/dist/Workers/EllipsoidOutlineGeometry-aa49f341.js +0 -1
  760. package/dist/Workers/EllipsoidOutlineGeometry-bf6fec74.js +0 -1
  761. package/dist/Workers/EllipsoidOutlineGeometry-f557c9da.js +0 -1
  762. package/dist/Workers/EllipsoidRhumbLine-2fd480f5.js +0 -1
  763. package/dist/Workers/EllipsoidRhumbLine-809f5074.js +0 -1
  764. package/dist/Workers/EllipsoidRhumbLine-d9133c69.js +0 -1
  765. package/dist/Workers/EllipsoidTangentPlane-2b15994f.js +0 -1
  766. package/dist/Workers/EllipsoidTangentPlane-67eb8fd7.js +0 -1
  767. package/dist/Workers/EllipsoidTangentPlane-7e7cce04.js +0 -1
  768. package/dist/Workers/EllipsoidTangentPlane-badcc339.js +0 -1
  769. package/dist/Workers/EllipsoidTangentPlane-d5fd24ed.js +0 -1
  770. package/dist/Workers/EllipsoidTangentPlane-eed317db.js +0 -1
  771. package/dist/Workers/EncodedCartesian3-6f721b97.js +0 -1
  772. package/dist/Workers/EncodedCartesian3-9b5052a5.js +0 -1
  773. package/dist/Workers/EncodedCartesian3-ac19e14b.js +0 -1
  774. package/dist/Workers/FrustumGeometry-38234739.js +0 -1
  775. package/dist/Workers/FrustumGeometry-697158a6.js +0 -1
  776. package/dist/Workers/FrustumGeometry-705dc598.js +0 -1
  777. package/dist/Workers/FrustumGeometry-7cc95152.js +0 -1
  778. package/dist/Workers/FrustumGeometry-a0988373.js +0 -1
  779. package/dist/Workers/FrustumGeometry-bf3f376b.js +0 -1
  780. package/dist/Workers/FullArray.js +0 -1
  781. package/dist/Workers/GeometryAttribute-51995e5a.js +0 -1
  782. package/dist/Workers/GeometryAttribute-8106b887.js +0 -1
  783. package/dist/Workers/GeometryAttribute-9cc31675.js +0 -1
  784. package/dist/Workers/GeometryAttribute-ccf4e0b6.js +0 -1
  785. package/dist/Workers/GeometryAttribute-e03451d8.js +0 -1
  786. package/dist/Workers/GeometryAttribute-e89ef932.js +0 -1
  787. package/dist/Workers/GeometryInstance-083d7584.js +0 -1
  788. package/dist/Workers/GeometryInstance-3287a41d.js +0 -1
  789. package/dist/Workers/GeometryInstance-5729d1a7.js +0 -1
  790. package/dist/Workers/GeometryInstance-75eda02f.js +0 -1
  791. package/dist/Workers/GeometryInstance-a24fc358.js +0 -1
  792. package/dist/Workers/GeometryInstance-a29ed6fd.js +0 -1
  793. package/dist/Workers/GeometryOffsetAttribute-b02d5bb9.js +0 -1
  794. package/dist/Workers/GeometryPipeline-160871a5.js +0 -1
  795. package/dist/Workers/GeometryPipeline-21c7c817.js +0 -1
  796. package/dist/Workers/GeometryPipeline-46833021.js +0 -1
  797. package/dist/Workers/GeometryPipeline-64734a0f.js +0 -1
  798. package/dist/Workers/GeometryPipeline-868a22d5.js +0 -1
  799. package/dist/Workers/GeometryPipeline-dd278883.js +0 -1
  800. package/dist/Workers/IndexDatatype-516320ea.js +0 -1
  801. package/dist/Workers/IntersectionTests-318fd637.js +0 -1
  802. package/dist/Workers/IntersectionTests-46ce3a3a.js +0 -1
  803. package/dist/Workers/IntersectionTests-5403be00.js +0 -1
  804. package/dist/Workers/IntersectionTests-7cdfef0c.js +0 -1
  805. package/dist/Workers/IntersectionTests-ca6d4041.js +0 -1
  806. package/dist/Workers/IntersectionTests-f3d5850d.js +0 -1
  807. package/dist/Workers/Math-5bbcea10.js +0 -1
  808. package/dist/Workers/Matrix2-10a61a55.js +0 -1
  809. package/dist/Workers/OrientedBoundingBox-2f174fe3.js +0 -1
  810. package/dist/Workers/OrientedBoundingBox-6c372bbc.js +0 -1
  811. package/dist/Workers/OrientedBoundingBox-6eb17dbb.js +0 -1
  812. package/dist/Workers/OrientedBoundingBox-6ff47a8a.js +0 -1
  813. package/dist/Workers/OrientedBoundingBox-a6a4c32b.js +0 -1
  814. package/dist/Workers/OrientedBoundingBox-d8d60f95.js +0 -1
  815. package/dist/Workers/Plane-0ec594f2.js +0 -1
  816. package/dist/Workers/Plane-0f30f65b.js +0 -1
  817. package/dist/Workers/Plane-d53c8e90.js +0 -1
  818. package/dist/Workers/Plane-f7823f4c.js +0 -1
  819. package/dist/Workers/Plane-fa12edbb.js +0 -1
  820. package/dist/Workers/Plane-fa98d6ca.js +0 -1
  821. package/dist/Workers/PolygonGeometryLibrary-1b173d8c.js +0 -1
  822. package/dist/Workers/PolygonGeometryLibrary-2394a24c.js +0 -1
  823. package/dist/Workers/PolygonGeometryLibrary-336d42f5.js +0 -1
  824. package/dist/Workers/PolygonGeometryLibrary-5bb2def1.js +0 -1
  825. package/dist/Workers/PolygonGeometryLibrary-c4287ef2.js +0 -1
  826. package/dist/Workers/PolygonGeometryLibrary-e7ef9273.js +0 -1
  827. package/dist/Workers/PolygonPipeline-01006d79.js +0 -1
  828. package/dist/Workers/PolygonPipeline-19b66f06.js +0 -1
  829. package/dist/Workers/PolygonPipeline-37a33a39.js +0 -1
  830. package/dist/Workers/PolygonPipeline-5983aa11.js +0 -1
  831. package/dist/Workers/PolygonPipeline-7c54e19e.js +0 -1
  832. package/dist/Workers/PolygonPipeline-d1b4c320.js +0 -1
  833. package/dist/Workers/PolylinePipeline-45329d56.js +0 -1
  834. package/dist/Workers/PolylinePipeline-6484d4ee.js +0 -1
  835. package/dist/Workers/PolylinePipeline-971ba240.js +0 -1
  836. package/dist/Workers/PolylinePipeline-d5024385.js +0 -1
  837. package/dist/Workers/PolylinePipeline-d59947c4.js +0 -1
  838. package/dist/Workers/PolylinePipeline-eeb6f648.js +0 -1
  839. package/dist/Workers/PolylineVolumeGeometryLibrary-2f82c4db.js +0 -1
  840. package/dist/Workers/PolylineVolumeGeometryLibrary-81481506.js +0 -1
  841. package/dist/Workers/PolylineVolumeGeometryLibrary-955f4335.js +0 -1
  842. package/dist/Workers/PolylineVolumeGeometryLibrary-d57282e3.js +0 -1
  843. package/dist/Workers/PolylineVolumeGeometryLibrary-e2e6c33b.js +0 -1
  844. package/dist/Workers/PolylineVolumeGeometryLibrary-e435332a.js +0 -1
  845. package/dist/Workers/PrimitivePipeline-100ea173.js +0 -1
  846. package/dist/Workers/PrimitivePipeline-757ec521.js +0 -1
  847. package/dist/Workers/PrimitivePipeline-928d43fe.js +0 -1
  848. package/dist/Workers/PrimitivePipeline-986742a6.js +0 -1
  849. package/dist/Workers/PrimitivePipeline-9deb0937.js +0 -1
  850. package/dist/Workers/PrimitivePipeline-b3cc986b.js +0 -1
  851. package/dist/Workers/PrimitivePipeline-ed7c0918.js +0 -1
  852. package/dist/Workers/RectangleGeometryLibrary-02221243.js +0 -1
  853. package/dist/Workers/RectangleGeometryLibrary-336b3589.js +0 -1
  854. package/dist/Workers/RectangleGeometryLibrary-3c449dce.js +0 -1
  855. package/dist/Workers/RectangleGeometryLibrary-44075333.js +0 -1
  856. package/dist/Workers/RectangleGeometryLibrary-9e402320.js +0 -1
  857. package/dist/Workers/RectangleGeometryLibrary-af611323.js +0 -1
  858. package/dist/Workers/RuntimeError-ac2797b4.js +0 -1
  859. package/dist/Workers/TerrainEncoding-03f4779b.js +0 -1
  860. package/dist/Workers/TerrainEncoding-652abf1d.js +0 -1
  861. package/dist/Workers/TerrainEncoding-6f894d6e.js +0 -1
  862. package/dist/Workers/TerrainEncoding-7ea7a6aa.js +0 -1
  863. package/dist/Workers/TerrainEncoding-a621a0f9.js +0 -1
  864. package/dist/Workers/TerrainEncoding-d2f48ea1.js +0 -1
  865. package/dist/Workers/Transforms-1fa85493.js +0 -1
  866. package/dist/Workers/Transforms-5aeb1d5e.js +0 -1
  867. package/dist/Workers/Transforms-70ded1e8.js +0 -1
  868. package/dist/Workers/Transforms-713e2e92.js +0 -1
  869. package/dist/Workers/Transforms-8c8e0c6f.js +0 -1
  870. package/dist/Workers/Transforms-984eb057.js +0 -1
  871. package/dist/Workers/VertexFormat-90d15264.js +0 -1
  872. package/dist/Workers/WallGeometryLibrary-40d299b6.js +0 -1
  873. package/dist/Workers/WallGeometryLibrary-5386b8d1.js +0 -1
  874. package/dist/Workers/WallGeometryLibrary-62af8286.js +0 -1
  875. package/dist/Workers/WallGeometryLibrary-8e2f0582.js +0 -1
  876. package/dist/Workers/WallGeometryLibrary-c815a7b8.js +0 -1
  877. package/dist/Workers/WallGeometryLibrary-fcee93b1.js +0 -1
  878. package/dist/Workers/WebMercatorProjection-941959a9.js +0 -1
  879. package/dist/Workers/WebMercatorProjection-9d47817f.js +0 -1
  880. package/dist/Workers/WebMercatorProjection-e6de5e67.js +0 -1
  881. package/dist/Workers/arrayRemoveDuplicates-bdf50aa0.js +0 -1
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-984eb057","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,Q,$,tt,et,at,e,it,rt,nt,ot,f){"use strict";var mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,ct=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ft=Math.cos,dt=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,ot.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,ot.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/ot.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/ot.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,A=!1,E=!1,x=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(A=!0,p+=s-1),(r-i)%ot.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*x),z=Q.arrayFill(new Array(x),!1),N=Q.arrayFill(new Array(x),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*x):void 0,F=m.tangent?new Float32Array(3*x):void 0,P=m.bitangent?new Float32Array(3*x):void 0,R=m.st?new Float32Array(2*x):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=dt(c[L]),U[L]=ft(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ft(f[V]),S[V]=dt(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=x/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(A)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=x/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<x;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,mt),O=O.geodeticSurfaceNormal(I,st);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,ct),R[J++]=Math.atan2(I.y,I.x)/ot.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=ut),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,lt),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),A=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,A),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,Q,$,tt,et,at,e,it,rt,nt,ot,f){"use strict";var mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,ct=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ft=Math.cos,dt=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,ot.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,ot.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/ot.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/ot.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,A=!1,E=!1,x=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(A=!0,p+=s-1),(r-i)%ot.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*x),z=Q.arrayFill(new Array(x),!1),N=Q.arrayFill(new Array(x),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*x):void 0,F=m.tangent?new Float32Array(3*x):void 0,P=m.bitangent?new Float32Array(3*x):void 0,R=m.st?new Float32Array(2*x):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=dt(c[L]),U[L]=ft(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ft(f[V]),S[V]=dt(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=x/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(A)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=x/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<x;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,mt),O=O.geodeticSurfaceNormal(I,st);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,ct),R[J++]=Math.atan2(I.y,I.x)/ot.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=ut),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,lt),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),A=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,A),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-70ded1e8","./Matrix2-10a61a55","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(t,Q,$,tt,et,at,e,it,rt,nt,f){"use strict";var ot=new tt.Cartesian3,mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ct=Math.cos,ft=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,et.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,et.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/et.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/et.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,x=!1,E=!1,A=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(x=!0,p+=s-1),(r-i)%et.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*A),z=Q.arrayFill(new Array(A),!1),N=Q.arrayFill(new Array(A),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*A):void 0,F=m.tangent?new Float32Array(3*A):void 0,P=m.bitangent?new Float32Array(3*A):void 0,R=m.st?new Float32Array(2*A):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=ft(c[L]),U[L]=ct(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ct(f[V]),S[V]=ft(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=A/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(x)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=A/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<A;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,ot),O=O.geodeticSurfaceNormal(I,mt);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,lt),R[J++]=Math.atan2(I.y,I.x)/et.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=st),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,ut),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),x=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,x),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-984eb057","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(i,D,I,T,z,L,e,R,N,B,S){"use strict";var f=new T.Cartesian3(1,1,1),U=Math.cos,F=Math.sin;function d(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var e=L.defaultValue(i.radii,f),t=L.defaultValue(i.innerRadii,e),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,S.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,S.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(e),this._innerRadii=T.Cartesian3.clone(t),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*T.Cartesian3.packedLength+8,d.pack=function(i,e,t){return t=L.defaultValue(t,0),T.Cartesian3.pack(i._radii,e,t),t+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,e,t),t+=T.Cartesian3.packedLength,e[t++]=i._minimumClock,e[t++]=i._maximumClock,e[t++]=i._minimumCone,e[t++]=i._maximumCone,e[t++]=i._stackPartitions,e[t++]=i._slicePartitions,e[t++]=i._subdivisions,e[t]=L.defaultValue(i._offsetAttribute,-1),e};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(i,e,t){e=L.defaultValue(e,0);var a=T.Cartesian3.unpack(i,e,c),n=(e+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,e,C)),r=(e+=T.Cartesian3.packedLength,i[e++]),o=i[e++],s=i[e++],m=i[e++],u=i[e++],f=i[e++],l=i[e++],i=i[e];return L.defined(t)?(t._radii=T.Cartesian3.clone(a,t._radii),t._innerRadii=T.Cartesian3.clone(n,t._innerRadii),t._minimumClock=r,t._maximumClock=o,t._minimumCone=s,t._maximumCone=m,t._stackPartitions=u,t._slicePartitions=f,t._subdivisions=l,t._offsetAttribute=-1===i?void 0:i,t):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=l,_.offsetAttribute=-1===i?void 0:i,new d(_))},d.createGeometry=function(i){var e=i._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var t=i._innerRadii;if(!(t.x<=0||t.y<=0||t.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(e),l=i._slicePartitions+1,d=i._stackPartitions+1,c=((l=Math.round(l*Math.abs(o-r)/S.CesiumMath.TWO_PI))<2&&(l=2),(d=Math.round(d*Math.abs(m-s)/S.CesiumMath.PI))<2&&(d=2),0),C=1,_=t.x!==e.x||t.y!==e.y||t.z!==e.z,h=!1,p=!1,y=(_&&(C=2,0<s&&(h=!0,c+=l),m<Math.PI)&&(p=!0,c+=l),u*C*(d+l)),b=new Float64Array(3*y),k=B.IndexDatatype.createTypedArray(y,2*(y+c-(l+d)*C)),v=0,A=new Array(d),x=new Array(d),P=0;P<d;P++)A[P]=F(n=s+P*(m-s)/(d-1)),x[P]=U(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=F(a=r+P*(o-r)/(u-1)),M[P]=U(a);for(P=0;P<d;P++)for(g=0;g<u;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];if(_)for(P=0;P<d;P++)for(g=0;g<u;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];for(A.length=u,x.length=u,P=0;P<u;P++)A[P]=F(n=s+P*(m-s)/(u-1)),x[P]=U(n);for(w.length=l,M.length=l,P=0;P<l;P++)w[P]=F(a=r+P*(o-r)/(l-1)),M[P]=U(a);for(P=0;P<u;P++)for(g=0;g<l;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];if(_)for(P=0;P<u;P++)for(g=0;g<l;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];for(P=v=0;P<d*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var G=d*u*C;for(P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_)for(G=d*u*C+l*u,P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_){var E=d*u*C,O=E+u*l;if(h)for(P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P;if(p)for(E+=u*l-l,O+=u*l-l,P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P}y=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})});return L.defined(i._offsetAttribute)&&(c=b.length,_=new Uint8Array(c/3),h=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,h),y.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:y,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(i,D,I,T,z,L,e,R,N,B,S){"use strict";var f=new T.Cartesian3(1,1,1),U=Math.cos,F=Math.sin;function d(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var e=L.defaultValue(i.radii,f),t=L.defaultValue(i.innerRadii,e),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,S.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,S.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(e),this._innerRadii=T.Cartesian3.clone(t),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*T.Cartesian3.packedLength+8,d.pack=function(i,e,t){return t=L.defaultValue(t,0),T.Cartesian3.pack(i._radii,e,t),t+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,e,t),t+=T.Cartesian3.packedLength,e[t++]=i._minimumClock,e[t++]=i._maximumClock,e[t++]=i._minimumCone,e[t++]=i._maximumCone,e[t++]=i._stackPartitions,e[t++]=i._slicePartitions,e[t++]=i._subdivisions,e[t]=L.defaultValue(i._offsetAttribute,-1),e};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(i,e,t){e=L.defaultValue(e,0);var a=T.Cartesian3.unpack(i,e,c),n=(e+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,e,C)),r=(e+=T.Cartesian3.packedLength,i[e++]),o=i[e++],s=i[e++],m=i[e++],u=i[e++],f=i[e++],l=i[e++],i=i[e];return L.defined(t)?(t._radii=T.Cartesian3.clone(a,t._radii),t._innerRadii=T.Cartesian3.clone(n,t._innerRadii),t._minimumClock=r,t._maximumClock=o,t._minimumCone=s,t._maximumCone=m,t._stackPartitions=u,t._slicePartitions=f,t._subdivisions=l,t._offsetAttribute=-1===i?void 0:i,t):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=l,_.offsetAttribute=-1===i?void 0:i,new d(_))},d.createGeometry=function(i){var e=i._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var t=i._innerRadii;if(!(t.x<=0||t.y<=0||t.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(e),l=i._slicePartitions+1,d=i._stackPartitions+1,c=((l=Math.round(l*Math.abs(o-r)/S.CesiumMath.TWO_PI))<2&&(l=2),(d=Math.round(d*Math.abs(m-s)/S.CesiumMath.PI))<2&&(d=2),0),C=1,_=t.x!==e.x||t.y!==e.y||t.z!==e.z,h=!1,p=!1,b=(_&&(C=2,0<s&&(h=!0,c+=l),m<Math.PI)&&(p=!0,c+=l),u*C*(d+l)),y=new Float64Array(3*b),k=B.IndexDatatype.createTypedArray(b,2*(b+c-(l+d)*C)),v=0,A=new Array(d),x=new Array(d),P=0;P<d;P++)A[P]=F(n=s+P*(m-s)/(d-1)),x[P]=U(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=F(a=r+P*(o-r)/(u-1)),M[P]=U(a);for(P=0;P<d;P++)for(g=0;g<u;g++)y[v++]=e.x*A[P]*M[g],y[v++]=e.y*A[P]*w[g],y[v++]=e.z*x[P];if(_)for(P=0;P<d;P++)for(g=0;g<u;g++)y[v++]=t.x*A[P]*M[g],y[v++]=t.y*A[P]*w[g],y[v++]=t.z*x[P];for(A.length=u,x.length=u,P=0;P<u;P++)A[P]=F(n=s+P*(m-s)/(u-1)),x[P]=U(n);for(w.length=l,M.length=l,P=0;P<l;P++)w[P]=F(a=r+P*(o-r)/(l-1)),M[P]=U(a);for(P=0;P<u;P++)for(g=0;g<l;g++)y[v++]=e.x*A[P]*M[g],y[v++]=e.y*A[P]*w[g],y[v++]=e.z*x[P];if(_)for(P=0;P<u;P++)for(g=0;g<l;g++)y[v++]=t.x*A[P]*M[g],y[v++]=t.y*A[P]*w[g],y[v++]=t.z*x[P];for(P=v=0;P<d*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var G=d*u*C;for(P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_)for(G=d*u*C+l*u,P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_){var E=d*u*C,O=E+u*l;if(h)for(P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P;if(p)for(E+=u*l-l,O+=u*l-l,P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P}b=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y})});return L.defined(i._offsetAttribute)&&(c=y.length,_=new Uint8Array(c/3),h=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,h),b.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:b,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(i,D,I,T,z,L,e,R,N,B,S){"use strict";var f=new T.Cartesian3(1,1,1),U=Math.cos,F=Math.sin;function d(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var e=L.defaultValue(i.radii,f),t=L.defaultValue(i.innerRadii,e),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,S.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,S.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(e),this._innerRadii=T.Cartesian3.clone(t),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*T.Cartesian3.packedLength+8,d.pack=function(i,e,t){return t=L.defaultValue(t,0),T.Cartesian3.pack(i._radii,e,t),t+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,e,t),t+=T.Cartesian3.packedLength,e[t++]=i._minimumClock,e[t++]=i._maximumClock,e[t++]=i._minimumCone,e[t++]=i._maximumCone,e[t++]=i._stackPartitions,e[t++]=i._slicePartitions,e[t++]=i._subdivisions,e[t]=L.defaultValue(i._offsetAttribute,-1),e};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(i,e,t){e=L.defaultValue(e,0);var a=T.Cartesian3.unpack(i,e,c),n=(e+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,e,C)),r=(e+=T.Cartesian3.packedLength,i[e++]),o=i[e++],s=i[e++],m=i[e++],u=i[e++],f=i[e++],l=i[e++],i=i[e];return L.defined(t)?(t._radii=T.Cartesian3.clone(a,t._radii),t._innerRadii=T.Cartesian3.clone(n,t._innerRadii),t._minimumClock=r,t._maximumClock=o,t._minimumCone=s,t._maximumCone=m,t._stackPartitions=u,t._slicePartitions=f,t._subdivisions=l,t._offsetAttribute=-1===i?void 0:i,t):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=l,_.offsetAttribute=-1===i?void 0:i,new d(_))},d.createGeometry=function(i){var e=i._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var t=i._innerRadii;if(!(t.x<=0||t.y<=0||t.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(e),l=i._slicePartitions+1,d=i._stackPartitions+1,c=((l=Math.round(l*Math.abs(o-r)/S.CesiumMath.TWO_PI))<2&&(l=2),(d=Math.round(d*Math.abs(m-s)/S.CesiumMath.PI))<2&&(d=2),0),C=1,_=t.x!==e.x||t.y!==e.y||t.z!==e.z,h=!1,p=!1,b=(_&&(C=2,0<s&&(h=!0,c+=l),m<Math.PI)&&(p=!0,c+=l),u*C*(d+l)),y=new Float64Array(3*b),k=B.IndexDatatype.createTypedArray(b,2*(b+c-(l+d)*C)),v=0,A=new Array(d),x=new Array(d),P=0;P<d;P++)A[P]=F(n=s+P*(m-s)/(d-1)),x[P]=U(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=F(a=r+P*(o-r)/(u-1)),M[P]=U(a);for(P=0;P<d;P++)for(g=0;g<u;g++)y[v++]=e.x*A[P]*M[g],y[v++]=e.y*A[P]*w[g],y[v++]=e.z*x[P];if(_)for(P=0;P<d;P++)for(g=0;g<u;g++)y[v++]=t.x*A[P]*M[g],y[v++]=t.y*A[P]*w[g],y[v++]=t.z*x[P];for(A.length=u,x.length=u,P=0;P<u;P++)A[P]=F(n=s+P*(m-s)/(u-1)),x[P]=U(n);for(w.length=l,M.length=l,P=0;P<l;P++)w[P]=F(a=r+P*(o-r)/(l-1)),M[P]=U(a);for(P=0;P<u;P++)for(g=0;g<l;g++)y[v++]=e.x*A[P]*M[g],y[v++]=e.y*A[P]*w[g],y[v++]=e.z*x[P];if(_)for(P=0;P<u;P++)for(g=0;g<l;g++)y[v++]=t.x*A[P]*M[g],y[v++]=t.y*A[P]*w[g],y[v++]=t.z*x[P];for(P=v=0;P<d*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var G=d*u*C;for(P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_)for(G=d*u*C+l*u,P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_){var E=d*u*C,O=E+u*l;if(h)for(P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P;if(p)for(E+=u*l-l,O+=u*l-l,P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P}b=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y})});return L.defined(i._offsetAttribute)&&(c=y.length,_=new Uint8Array(c/3),h=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,h),b.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:b,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(i,D,I,T,z,L,e,R,N,B,S){"use strict";var f=new T.Cartesian3(1,1,1),U=Math.cos,F=Math.sin;function l(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var e=L.defaultValue(i.radii,f),t=L.defaultValue(i.innerRadii,e),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,S.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,S.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(e),this._innerRadii=T.Cartesian3.clone(t),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}l.packedLength=2*T.Cartesian3.packedLength+8,l.pack=function(i,e,t){return t=L.defaultValue(t,0),T.Cartesian3.pack(i._radii,e,t),t+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,e,t),t+=T.Cartesian3.packedLength,e[t++]=i._minimumClock,e[t++]=i._maximumClock,e[t++]=i._minimumCone,e[t++]=i._maximumCone,e[t++]=i._stackPartitions,e[t++]=i._slicePartitions,e[t++]=i._subdivisions,e[t]=L.defaultValue(i._offsetAttribute,-1),e};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};l.unpack=function(i,e,t){e=L.defaultValue(e,0);var a=T.Cartesian3.unpack(i,e,c),n=(e+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,e,C)),r=(e+=T.Cartesian3.packedLength,i[e++]),o=i[e++],s=i[e++],m=i[e++],u=i[e++],f=i[e++],d=i[e++],i=i[e];return L.defined(t)?(t._radii=T.Cartesian3.clone(a,t._radii),t._innerRadii=T.Cartesian3.clone(n,t._innerRadii),t._minimumClock=r,t._maximumClock=o,t._minimumCone=s,t._maximumCone=m,t._stackPartitions=u,t._slicePartitions=f,t._subdivisions=d,t._offsetAttribute=-1===i?void 0:i,t):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=d,_.offsetAttribute=-1===i?void 0:i,new l(_))},l.createGeometry=function(i){var e=i._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var t=i._innerRadii;if(!(t.x<=0||t.y<=0||t.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(e),d=i._slicePartitions+1,l=i._stackPartitions+1,c=((d=Math.round(d*Math.abs(o-r)/S.CesiumMath.TWO_PI))<2&&(d=2),(l=Math.round(l*Math.abs(m-s)/S.CesiumMath.PI))<2&&(l=2),0),C=1,_=t.x!==e.x||t.y!==e.y||t.z!==e.z,h=!1,p=!1,y=(_&&(C=2,0<s&&(h=!0,c+=d),m<Math.PI)&&(p=!0,c+=d),u*C*(l+d)),b=new Float64Array(3*y),k=B.IndexDatatype.createTypedArray(y,2*(y+c-(d+l)*C)),v=0,A=new Array(l),x=new Array(l),P=0;P<l;P++)A[P]=F(n=s+P*(m-s)/(l-1)),x[P]=U(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=F(a=r+P*(o-r)/(u-1)),M[P]=U(a);for(P=0;P<l;P++)for(g=0;g<u;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];if(_)for(P=0;P<l;P++)for(g=0;g<u;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];for(A.length=u,x.length=u,P=0;P<u;P++)A[P]=F(n=s+P*(m-s)/(u-1)),x[P]=U(n);for(w.length=d,M.length=d,P=0;P<d;P++)w[P]=F(a=r+P*(o-r)/(d-1)),M[P]=U(a);for(P=0;P<u;P++)for(g=0;g<d;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];if(_)for(P=0;P<u;P++)for(g=0;g<d;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];for(P=v=0;P<l*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var G=l*u*C;for(P=0;P<d;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*d,k[v++]=G+P+(g+1)*d;if(_)for(G=l*u*C+d*u,P=0;P<d;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*d,k[v++]=G+P+(g+1)*d;if(_){var E=l*u*C,O=E+u*d;if(h)for(P=0;P<d;P++)k[v++]=E+P,k[v++]=O+P;if(p)for(E+=u*d-d,O+=u*d-d,P=0;P<d;P++)k[v++]=E+P,k[v++]=O+P}y=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})});return L.defined(i._offsetAttribute)&&(c=b.length,_=new Uint8Array(c/3),h=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,h),y.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:y,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=l});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(i,D,I,T,z,L,t,R,N,B,S){"use strict";var f=new T.Cartesian3(1,1,1),U=Math.cos,F=Math.sin;function d(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var t=L.defaultValue(i.radii,f),e=L.defaultValue(i.innerRadii,t),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,S.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,S.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(t),this._innerRadii=T.Cartesian3.clone(e),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}d.packedLength=2*T.Cartesian3.packedLength+8,d.pack=function(i,t,e){return e=L.defaultValue(e,0),T.Cartesian3.pack(i._radii,t,e),e+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,t,e),e+=T.Cartesian3.packedLength,t[e++]=i._minimumClock,t[e++]=i._maximumClock,t[e++]=i._minimumCone,t[e++]=i._maximumCone,t[e++]=i._stackPartitions,t[e++]=i._slicePartitions,t[e++]=i._subdivisions,t[e]=L.defaultValue(i._offsetAttribute,-1),t};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};d.unpack=function(i,t,e){t=L.defaultValue(t,0);var a=T.Cartesian3.unpack(i,t,c),n=(t+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,t,C)),r=(t+=T.Cartesian3.packedLength,i[t++]),o=i[t++],s=i[t++],m=i[t++],u=i[t++],f=i[t++],l=i[t++],i=i[t];return L.defined(e)?(e._radii=T.Cartesian3.clone(a,e._radii),e._innerRadii=T.Cartesian3.clone(n,e._innerRadii),e._minimumClock=r,e._maximumClock=o,e._minimumCone=s,e._maximumCone=m,e._stackPartitions=u,e._slicePartitions=f,e._subdivisions=l,e._offsetAttribute=-1===i?void 0:i,e):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=l,_.offsetAttribute=-1===i?void 0:i,new d(_))},d.createGeometry=function(i){var t=i._radii;if(!(t.x<=0||t.y<=0||t.z<=0)){var e=i._innerRadii;if(!(e.x<=0||e.y<=0||e.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(t),l=i._slicePartitions+1,d=i._stackPartitions+1,c=((l=Math.round(l*Math.abs(o-r)/S.CesiumMath.TWO_PI))<2&&(l=2),(d=Math.round(d*Math.abs(m-s)/S.CesiumMath.PI))<2&&(d=2),0),C=1,_=e.x!==t.x||e.y!==t.y||e.z!==t.z,h=!1,p=!1,y=(_&&(C=2,0<s&&(h=!0,c+=l),m<Math.PI)&&(p=!0,c+=l),u*C*(d+l)),b=new Float64Array(3*y),k=B.IndexDatatype.createTypedArray(y,2*(y+c-(l+d)*C)),v=0,A=new Array(d),x=new Array(d),P=0;P<d;P++)A[P]=F(n=s+P*(m-s)/(d-1)),x[P]=U(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=F(a=r+P*(o-r)/(u-1)),M[P]=U(a);for(P=0;P<d;P++)for(g=0;g<u;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];if(_)for(P=0;P<d;P++)for(g=0;g<u;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];for(A.length=u,x.length=u,P=0;P<u;P++)A[P]=F(n=s+P*(m-s)/(u-1)),x[P]=U(n);for(w.length=l,M.length=l,P=0;P<l;P++)w[P]=F(a=r+P*(o-r)/(l-1)),M[P]=U(a);for(P=0;P<u;P++)for(g=0;g<l;g++)b[v++]=t.x*A[P]*M[g],b[v++]=t.y*A[P]*w[g],b[v++]=t.z*x[P];if(_)for(P=0;P<u;P++)for(g=0;g<l;g++)b[v++]=e.x*A[P]*M[g],b[v++]=e.y*A[P]*w[g],b[v++]=e.z*x[P];for(P=v=0;P<d*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var G=d*u*C;for(P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_)for(G=d*u*C+l*u,P=0;P<l;P++)for(g=0;g<u-1;g++)k[v++]=G+P+g*l,k[v++]=G+P+(g+1)*l;if(_){var E=d*u*C,O=E+u*l;if(h)for(P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P;if(p)for(E+=u*l-l,O+=u*l-l,P=0;P<l;P++)k[v++]=E+P,k[v++]=O+P}y=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})});return L.defined(i._offsetAttribute)&&(c=b.length,_=new Uint8Array(c/3),h=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,h),y.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:y,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=d});
@@ -1 +0,0 @@
1
- define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-70ded1e8","./Matrix2-10a61a55","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(i,D,I,T,z,L,t,R,N,B){"use strict";var f=new T.Cartesian3(1,1,1),S=Math.cos,U=Math.sin;function l(i){i=L.defaultValue(i,L.defaultValue.EMPTY_OBJECT);var t=L.defaultValue(i.radii,f),e=L.defaultValue(i.innerRadii,t),a=L.defaultValue(i.minimumClock,0),n=L.defaultValue(i.maximumClock,z.CesiumMath.TWO_PI),r=L.defaultValue(i.minimumCone,0),o=L.defaultValue(i.maximumCone,z.CesiumMath.PI),s=Math.round(L.defaultValue(i.stackPartitions,10)),m=Math.round(L.defaultValue(i.slicePartitions,8)),u=Math.round(L.defaultValue(i.subdivisions,128));this._radii=T.Cartesian3.clone(t),this._innerRadii=T.Cartesian3.clone(e),this._minimumClock=a,this._maximumClock=n,this._minimumCone=r,this._maximumCone=o,this._stackPartitions=s,this._slicePartitions=m,this._subdivisions=u,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}l.packedLength=2*T.Cartesian3.packedLength+8,l.pack=function(i,t,e){return e=L.defaultValue(e,0),T.Cartesian3.pack(i._radii,t,e),e+=T.Cartesian3.packedLength,T.Cartesian3.pack(i._innerRadii,t,e),e+=T.Cartesian3.packedLength,t[e++]=i._minimumClock,t[e++]=i._maximumClock,t[e++]=i._minimumCone,t[e++]=i._maximumCone,t[e++]=i._stackPartitions,t[e++]=i._slicePartitions,t[e++]=i._subdivisions,t[e]=L.defaultValue(i._offsetAttribute,-1),t};var c=new T.Cartesian3,C=new T.Cartesian3,_={radii:c,innerRadii:C,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};l.unpack=function(i,t,e){t=L.defaultValue(t,0);var a=T.Cartesian3.unpack(i,t,c),n=(t+=T.Cartesian3.packedLength,T.Cartesian3.unpack(i,t,C)),r=(t+=T.Cartesian3.packedLength,i[t++]),o=i[t++],s=i[t++],m=i[t++],u=i[t++],f=i[t++],d=i[t++],i=i[t];return L.defined(e)?(e._radii=T.Cartesian3.clone(a,e._radii),e._innerRadii=T.Cartesian3.clone(n,e._innerRadii),e._minimumClock=r,e._maximumClock=o,e._minimumCone=s,e._maximumCone=m,e._stackPartitions=u,e._slicePartitions=f,e._subdivisions=d,e._offsetAttribute=-1===i?void 0:i,e):(_.minimumClock=r,_.maximumClock=o,_.minimumCone=s,_.maximumCone=m,_.stackPartitions=u,_.slicePartitions=f,_.subdivisions=d,_.offsetAttribute=-1===i?void 0:i,new l(_))},l.createGeometry=function(i){var t=i._radii;if(!(t.x<=0||t.y<=0||t.z<=0)){var e=i._innerRadii;if(!(e.x<=0||e.y<=0||e.z<=0)){for(var a,n,r=i._minimumClock,o=i._maximumClock,s=i._minimumCone,m=i._maximumCone,u=i._subdivisions,f=T.Ellipsoid.fromCartesian3(t),d=i._slicePartitions+1,l=i._stackPartitions+1,c=((d=Math.round(d*Math.abs(o-r)/z.CesiumMath.TWO_PI))<2&&(d=2),(l=Math.round(l*Math.abs(m-s)/z.CesiumMath.PI))<2&&(l=2),0),C=1,_=e.x!==t.x||e.y!==t.y||e.z!==t.z,p=!1,h=!1,y=(_&&(C=2,0<s&&(p=!0,c+=d),m<Math.PI)&&(h=!0,c+=d),u*C*(l+d)),b=new Float64Array(3*y),k=B.IndexDatatype.createTypedArray(y,2*(y+c-(d+l)*C)),v=0,x=new Array(l),A=new Array(l),P=0;P<l;P++)x[P]=U(n=s+P*(m-s)/(l-1)),A[P]=S(n);var w=new Array(u),M=new Array(u);for(P=0;P<u;P++)w[P]=U(a=r+P*(o-r)/(u-1)),M[P]=S(a);for(P=0;P<l;P++)for(g=0;g<u;g++)b[v++]=t.x*x[P]*M[g],b[v++]=t.y*x[P]*w[g],b[v++]=t.z*A[P];if(_)for(P=0;P<l;P++)for(g=0;g<u;g++)b[v++]=e.x*x[P]*M[g],b[v++]=e.y*x[P]*w[g],b[v++]=e.z*A[P];for(x.length=u,A.length=u,P=0;P<u;P++)x[P]=U(n=s+P*(m-s)/(u-1)),A[P]=S(n);for(w.length=d,M.length=d,P=0;P<d;P++)w[P]=U(a=r+P*(o-r)/(d-1)),M[P]=S(a);for(P=0;P<u;P++)for(g=0;g<d;g++)b[v++]=t.x*x[P]*M[g],b[v++]=t.y*x[P]*w[g],b[v++]=t.z*A[P];if(_)for(P=0;P<u;P++)for(g=0;g<d;g++)b[v++]=e.x*x[P]*M[g],b[v++]=e.y*x[P]*w[g],b[v++]=e.z*A[P];for(P=v=0;P<l*C;P++)for(var V=P*u,g=0;g<u-1;g++)k[v++]=V+g,k[v++]=V+g+1;var E=l*u*C;for(P=0;P<d;P++)for(g=0;g<u-1;g++)k[v++]=E+P+g*d,k[v++]=E+P+(g+1)*d;if(_)for(E=l*u*C+d*u,P=0;P<d;P++)for(g=0;g<u-1;g++)k[v++]=E+P+g*d,k[v++]=E+P+(g+1)*d;if(_){var G=l*u*C,O=G+u*d;if(p)for(P=0;P<d;P++)k[v++]=G+P,k[v++]=O+P;if(h)for(G+=u*d-d,O+=u*d-d,P=0;P<d;P++)k[v++]=G+P,k[v++]=O+P}y=new N.GeometryAttributes({position:new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})});return L.defined(i._offsetAttribute)&&(c=b.length,_=new Uint8Array(c/3),p=i._offsetAttribute===D.GeometryOffsetAttribute.NONE?0:1,D.arrayFill(_,p),y.applyOffset=new R.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new R.Geometry({attributes:y,indices:k,primitiveType:R.PrimitiveType.LINES,boundingSphere:I.BoundingSphere.fromEllipsoid(f),offsetAttribute:i._offsetAttribute})}}},i.EllipsoidOutlineGeometry=l});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10"],function(t,R,i,y,S){"use strict";function W(t,i,a){var e,n,s,h;return 0===t?i*a:i*((1-(i=t*t)/4-3*(t=i*i)/64-5*(e=t*i)/256-175*(n=e*i)/16384-441*(s=n*i)/65536-4851*(h=s*i)/1048576)*(a=a)-(3*i/8+3*t/32+45*e/1024+105*n/4096+2205*s/131072+6237*h/524288)*Math.sin(2*a)+(15*t/256+45*e/1024+525*n/16384+1575*s/65536+155925*h/8388608)*Math.sin(4*a)-(35*e/3072+175*n/12288+3675*s/262144+13475*h/1048576)*Math.sin(6*a)+(315*n/131072+2205*s/524288+43659*h/8388608)*Math.sin(8*a)-(693*s/1310720+6237*h/5242880)*Math.sin(10*a)+1001*h/8388608*Math.sin(12*a))}function b(t,i){var a;return 0===t?Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i))):(a=t*Math.sin(i),Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i)))-t/2*Math.log((1+a)/(1-a)))}var l=new R.Cartesian3,d=new R.Cartesian3;function e(t,i,a,e){R.Cartesian3.normalize(e.cartographicToCartesian(i,d),l),R.Cartesian3.normalize(e.cartographicToCartesian(a,d),d);var n,s,h,u=e.maximumRadius,o=e.minimumRadius,u=u*u;t._ellipticitySquared=(u-o*o)/u,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=R.Cartographic.clone(i,t._start),t._start.height=0,t._end=R.Cartographic.clone(a,t._end),t._end.height=0,t._heading=(o=t,u=i.longitude,h=i.latitude,s=a.longitude,n=a.latitude,h=b(o._ellipticity,h),o=b(o._ellipticity,n),Math.atan2(S.CesiumMath.negativePiToPi(s-u),o-h)),t._distance=(n=t,s=e.maximumRadius,u=e.minimumRadius,o=i.longitude,h=i.latitude,t=a.longitude,e=a.latitude,i=n._heading,t-=o,o=0,o=S.CesiumMath.equalsEpsilon(Math.abs(i),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8)?s===u?s*Math.cos(h)*S.CesiumMath.negativePiToPi(t):(u=Math.sin(h),s*Math.cos(h)*S.CesiumMath.negativePiToPi(t)/Math.sqrt(1-n._ellipticitySquared*u*u)):(t=W(n._ellipticity,s,h),(W(n._ellipticity,s,e)-t)/Math.cos(i)),Math.abs(o))}function o(t,i,a,e,n,s){var h,u,o,l,d,r,M,c,m,_,g,p,C,P,f,O,E,v,I,T;return 0===a?R.Cartographic.clone(t,s):(h=n*n,o=Math.abs(S.CesiumMath.PI_OVER_TWO-Math.abs(i))>S.CesiumMath.EPSILON8?(u=W(n,e,t.latitude),l=a*Math.cos(i),u=u+l,u/=l=e,C=0===(o=n)?u:(r=(d=(l=u*u)*u)*u,g=(_=(m=(c=(M=(o=o*o)*o)*o)*o)*o)*o,p=Math.sin(2*u),C=Math.cos(2*u),P=Math.sin(4*u),f=Math.cos(4*u),O=Math.sin(6*u),E=Math.cos(6*u),v=Math.sin(8*u),I=Math.cos(8*u),T=Math.sin(10*u),u+u*o/4+7*u*M/64+15*u*c/256+579*u*m/16384+1515*u*_/65536+16837*u*g/1048576+(3*u*M/16+45*u*c/256-u*(32*l-561)*m/4096-u*(232*l-1677)*_/16384+u*(399985-90560*l+512*r)*g/5242880)*C+(21*u*c/256+483*u*m/4096-u*(224*l-1969)*_/16384-u*(33152*l-112599)*g/1048576)*f+(151*u*m/4096+4681*u*_/65536+1479*u*g/16384-453*d*g/32768)*E+(1097*u*_/65536+42783*u*g/1048576)*I+8011*u*g/1048576*Math.cos(10*u)+(3*o/8+3*M/16+213*c/2048-3*l*c/64+255*m/4096-33*l*m/512+20861*_/524288-33*l*_/512+r*_/1024+28273*g/1048576-471*l*g/8192+9*r*g/4096)*p+(21*M/256+21*c/256+533*m/8192-21*l*m/512+197*_/4096-315*l*_/4096+584039*g/16777216-12517*l*g/131072+7*r*g/2048)*P+(151*c/6144+151*m/4096+5019*_/131072-453*l*_/16384+26965*g/786432-8607*l*g/131072)*O+(1097*m/131072+1097*_/65536+225797*g/10485760-1097*l*g/65536)*v+(8011*_/2621440+8011*g/1048576)*T+293393*g/251658240*Math.sin(12*u)),f=b(n,t.latitude),d=b(n,C),E=Math.tan(i)*(d-f),S.CesiumMath.negativePiToPi(t.longitude+E)):(C=t.latitude,E=a/(0===n?e*Math.cos(t.latitude):(I=Math.sin(t.latitude),e*Math.cos(t.latitude)/Math.sqrt(1-h*I*I))),0<i?S.CesiumMath.negativePiToPi(t.longitude+E):S.CesiumMath.negativePiToPi(t.longitude-E)),y.defined(s)?(s.longitude=o,s.latitude=C,s.height=0,s):new R.Cartographic(o,C,0))}function r(t,i,a){a=y.defaultValue(a,R.Ellipsoid.WGS84);this._ellipsoid=a,this._start=new R.Cartographic,this._end=new R.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,y.defined(t)&&y.defined(i)&&e(this,t,i,a)}Object.defineProperties(r.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return this._heading}}}),r.fromStartHeadingDistance=function(t,i,a,e,n){var s=y.defaultValue(e,R.Ellipsoid.WGS84),h=s.maximumRadius,u=s.minimumRadius,h=h*h,u=Math.sqrt((h-u*u)/h),h=o(t,i=S.CesiumMath.negativePiToPi(i),a,s.maximumRadius,u);return!y.defined(n)||y.defined(e)&&!e.equals(n.ellipsoid)?new r(t,h,s):(n.setEndPoints(t,h),n)},r.prototype.setEndPoints=function(t,i){e(this,t,i,this._ellipsoid)},r.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},r.prototype.interpolateUsingSurfaceDistance=function(t,i){return o(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},r.prototype.findIntersectionWithLongitude=function(t,i){var a=this._ellipticity,e=this._heading,n=Math.abs(e),s=this._start;if(t=S.CesiumMath.negativePiToPi(t),S.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,S.CesiumMath.EPSILON14)&&(t=S.CesiumMath.sign(s.longitude)*Math.PI),y.defined(i)||(i=new R.Cartographic),Math.abs(S.CesiumMath.PI_OVER_TWO-n)<=S.CesiumMath.EPSILON8)i.longitude=t,i.latitude=s.latitude;else{if(S.CesiumMath.equalsEpsilon(Math.abs(S.CesiumMath.PI_OVER_TWO-n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return S.CesiumMath.equalsEpsilon(t,s.longitude,S.CesiumMath.EPSILON12)?void 0:(i.longitude=t,i.latitude=S.CesiumMath.PI_OVER_TWO*S.CesiumMath.sign(S.CesiumMath.PI_OVER_TWO-e),i.height=0,i);var n=s.latitude,h=a*Math.sin(n),u=Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+n))*Math.exp((t-s.longitude)/Math.tan(e)),o=(1+h)/(1-h),l=s.latitude;do{var d=l,r=a*Math.sin(d),l=2*Math.atan(u*Math.pow((1+r)/(1-r)/o,a/2))-S.CesiumMath.PI_OVER_TWO}while(!S.CesiumMath.equalsEpsilon(l,d,S.CesiumMath.EPSILON12));i.longitude=t,i.latitude=l}return i.height=0,i},r.prototype.findIntersectionWithLatitude=function(t,i){var a,e=this._ellipticity,n=this._heading,s=this._start;if(!S.CesiumMath.equalsEpsilon(Math.abs(n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return a=b(e,s.latitude),e=b(e,t),n=Math.tan(n)*(e-a),e=S.CesiumMath.negativePiToPi(s.longitude+n),y.defined(i)?(i.longitude=e,i.latitude=t,i.height=0,i):new R.Cartographic(e,t,0)},t.EllipsoidRhumbLine=r});
@@ -1 +0,0 @@
1
- define(["exports","./Matrix2-10a61a55","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18"],function(t,R,i,y,S){"use strict";function b(t,i,a){var e,n,s,h;return 0===t?i*a:i*((1-(i=t*t)/4-3*(t=i*i)/64-5*(e=t*i)/256-175*(n=e*i)/16384-441*(s=n*i)/65536-4851*(h=s*i)/1048576)*(a=a)-(3*i/8+3*t/32+45*e/1024+105*n/4096+2205*s/131072+6237*h/524288)*Math.sin(2*a)+(15*t/256+45*e/1024+525*n/16384+1575*s/65536+155925*h/8388608)*Math.sin(4*a)-(35*e/3072+175*n/12288+3675*s/262144+13475*h/1048576)*Math.sin(6*a)+(315*n/131072+2205*s/524288+43659*h/8388608)*Math.sin(8*a)-(693*s/1310720+6237*h/5242880)*Math.sin(10*a)+1001*h/8388608*Math.sin(12*a))}function W(t,i){var a;return 0===t?Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i))):(a=t*Math.sin(i),Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i)))-t/2*Math.log((1+a)/(1-a)))}var l=new R.Cartesian3,r=new R.Cartesian3;function e(t,i,a,e){R.Cartesian3.normalize(e.cartographicToCartesian(i,r),l),R.Cartesian3.normalize(e.cartographicToCartesian(a,r),r);var n,s,h,u=e.maximumRadius,o=e.minimumRadius,u=u*u;t._ellipticitySquared=(u-o*o)/u,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=R.Cartographic.clone(i,t._start),t._start.height=0,t._end=R.Cartographic.clone(a,t._end),t._end.height=0,t._heading=(o=t,u=i.longitude,h=i.latitude,s=a.longitude,n=a.latitude,h=W(o._ellipticity,h),o=W(o._ellipticity,n),Math.atan2(S.CesiumMath.negativePiToPi(s-u),o-h)),t._distance=(n=t,s=e.maximumRadius,u=e.minimumRadius,o=i.longitude,h=i.latitude,t=a.longitude,e=a.latitude,i=n._heading,t-=o,o=0,o=S.CesiumMath.equalsEpsilon(Math.abs(i),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8)?s===u?s*Math.cos(h)*S.CesiumMath.negativePiToPi(t):(u=Math.sin(h),s*Math.cos(h)*S.CesiumMath.negativePiToPi(t)/Math.sqrt(1-n._ellipticitySquared*u*u)):(t=b(n._ellipticity,s,h),(b(n._ellipticity,s,e)-t)/Math.cos(i)),Math.abs(o))}function o(t,i,a,e,n,s){var h,u,o,l,r,d,M,c,m,_,g,p,C,P,f,O,E,v,I,T;return 0===a?R.Cartographic.clone(t,s):(h=n*n,o=Math.abs(S.CesiumMath.PI_OVER_TWO-Math.abs(i))>S.CesiumMath.EPSILON8?(u=b(n,e,t.latitude),l=a*Math.cos(i),u=u+l,u/=l=e,C=0===(o=n)?u:(d=(r=(l=u*u)*u)*u,g=(_=(m=(c=(M=(o=o*o)*o)*o)*o)*o)*o,p=Math.sin(2*u),C=Math.cos(2*u),P=Math.sin(4*u),f=Math.cos(4*u),O=Math.sin(6*u),E=Math.cos(6*u),v=Math.sin(8*u),I=Math.cos(8*u),T=Math.sin(10*u),u+u*o/4+7*u*M/64+15*u*c/256+579*u*m/16384+1515*u*_/65536+16837*u*g/1048576+(3*u*M/16+45*u*c/256-u*(32*l-561)*m/4096-u*(232*l-1677)*_/16384+u*(399985-90560*l+512*d)*g/5242880)*C+(21*u*c/256+483*u*m/4096-u*(224*l-1969)*_/16384-u*(33152*l-112599)*g/1048576)*f+(151*u*m/4096+4681*u*_/65536+1479*u*g/16384-453*r*g/32768)*E+(1097*u*_/65536+42783*u*g/1048576)*I+8011*u*g/1048576*Math.cos(10*u)+(3*o/8+3*M/16+213*c/2048-3*l*c/64+255*m/4096-33*l*m/512+20861*_/524288-33*l*_/512+d*_/1024+28273*g/1048576-471*l*g/8192+9*d*g/4096)*p+(21*M/256+21*c/256+533*m/8192-21*l*m/512+197*_/4096-315*l*_/4096+584039*g/16777216-12517*l*g/131072+7*d*g/2048)*P+(151*c/6144+151*m/4096+5019*_/131072-453*l*_/16384+26965*g/786432-8607*l*g/131072)*O+(1097*m/131072+1097*_/65536+225797*g/10485760-1097*l*g/65536)*v+(8011*_/2621440+8011*g/1048576)*T+293393*g/251658240*Math.sin(12*u)),f=W(n,t.latitude),r=W(n,C),E=Math.tan(i)*(r-f),S.CesiumMath.negativePiToPi(t.longitude+E)):(C=t.latitude,E=a/(0===n?e*Math.cos(t.latitude):(I=Math.sin(t.latitude),e*Math.cos(t.latitude)/Math.sqrt(1-h*I*I))),0<i?S.CesiumMath.negativePiToPi(t.longitude+E):S.CesiumMath.negativePiToPi(t.longitude-E)),y.defined(s)?(s.longitude=o,s.latitude=C,s.height=0,s):new R.Cartographic(o,C,0))}function d(t,i,a){a=y.defaultValue(a,R.Ellipsoid.WGS84);this._ellipsoid=a,this._start=new R.Cartographic,this._end=new R.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,y.defined(t)&&y.defined(i)&&e(this,t,i,a)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return this._heading}}}),d.fromStartHeadingDistance=function(t,i,a,e,n){var s=y.defaultValue(e,R.Ellipsoid.WGS84),h=s.maximumRadius,u=s.minimumRadius,h=h*h,u=Math.sqrt((h-u*u)/h),h=o(t,i=S.CesiumMath.negativePiToPi(i),a,s.maximumRadius,u);return!y.defined(n)||y.defined(e)&&!e.equals(n.ellipsoid)?new d(t,h,s):(n.setEndPoints(t,h),n)},d.prototype.setEndPoints=function(t,i){e(this,t,i,this._ellipsoid)},d.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},d.prototype.interpolateUsingSurfaceDistance=function(t,i){return o(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},d.prototype.findIntersectionWithLongitude=function(t,i){var a=this._ellipticity,e=this._heading,n=Math.abs(e),s=this._start;if(t=S.CesiumMath.negativePiToPi(t),S.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,S.CesiumMath.EPSILON14)&&(t=S.CesiumMath.sign(s.longitude)*Math.PI),y.defined(i)||(i=new R.Cartographic),Math.abs(S.CesiumMath.PI_OVER_TWO-n)<=S.CesiumMath.EPSILON8)i.longitude=t,i.latitude=s.latitude;else{if(S.CesiumMath.equalsEpsilon(Math.abs(S.CesiumMath.PI_OVER_TWO-n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return S.CesiumMath.equalsEpsilon(t,s.longitude,S.CesiumMath.EPSILON12)?void 0:(i.longitude=t,i.latitude=S.CesiumMath.PI_OVER_TWO*S.CesiumMath.sign(S.CesiumMath.PI_OVER_TWO-e),i.height=0,i);var n=s.latitude,h=a*Math.sin(n),u=Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+n))*Math.exp((t-s.longitude)/Math.tan(e)),o=(1+h)/(1-h),l=s.latitude;do{var r=l,d=a*Math.sin(r),l=2*Math.atan(u*Math.pow((1+d)/(1-d)/o,a/2))-S.CesiumMath.PI_OVER_TWO}while(!S.CesiumMath.equalsEpsilon(l,r,S.CesiumMath.EPSILON12));i.longitude=t,i.latitude=l}return i.height=0,i},d.prototype.findIntersectionWithLatitude=function(t,i){var a,e=this._ellipticity,n=this._heading,s=this._start;if(!S.CesiumMath.equalsEpsilon(Math.abs(n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return a=W(e,s.latitude),e=W(e,t),n=Math.tan(n)*(e-a),e=S.CesiumMath.negativePiToPi(s.longitude+n),y.defined(i)?(i.longitude=e,i.latitude=t,i.height=0,i):new R.Cartographic(e,t,0)},t.EllipsoidRhumbLine=d});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10"],function(t,R,i,y,S){"use strict";function W(t,i,a){var e,n,s,h;return 0===t?i*a:i*((1-(i=t*t)/4-3*(t=i*i)/64-5*(e=t*i)/256-175*(n=e*i)/16384-441*(s=n*i)/65536-4851*(h=s*i)/1048576)*(a=a)-(3*i/8+3*t/32+45*e/1024+105*n/4096+2205*s/131072+6237*h/524288)*Math.sin(2*a)+(15*t/256+45*e/1024+525*n/16384+1575*s/65536+155925*h/8388608)*Math.sin(4*a)-(35*e/3072+175*n/12288+3675*s/262144+13475*h/1048576)*Math.sin(6*a)+(315*n/131072+2205*s/524288+43659*h/8388608)*Math.sin(8*a)-(693*s/1310720+6237*h/5242880)*Math.sin(10*a)+1001*h/8388608*Math.sin(12*a))}function q(t,i){var a;return 0===t?Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i))):(a=t*Math.sin(i),Math.log(Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+i)))-t/2*Math.log((1+a)/(1-a)))}var l=new R.Cartesian3,d=new R.Cartesian3;function e(t,i,a,e){R.Cartesian3.normalize(e.cartographicToCartesian(i,d),l),R.Cartesian3.normalize(e.cartographicToCartesian(a,d),d);var n,s,h,u=e.maximumRadius,o=e.minimumRadius,u=u*u;t._ellipticitySquared=(u-o*o)/u,t._ellipticity=Math.sqrt(t._ellipticitySquared),t._start=R.Cartographic.clone(i,t._start),t._start.height=0,t._end=R.Cartographic.clone(a,t._end),t._end.height=0,t._heading=(o=t,u=i.longitude,h=i.latitude,s=a.longitude,n=a.latitude,h=q(o._ellipticity,h),o=q(o._ellipticity,n),Math.atan2(S.CesiumMath.negativePiToPi(s-u),o-h)),t._distance=(n=t,s=e.maximumRadius,u=e.minimumRadius,o=i.longitude,h=i.latitude,t=a.longitude,e=a.latitude,i=n._heading,t-=o,o=0,o=S.CesiumMath.equalsEpsilon(Math.abs(i),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8)?s===u?s*Math.cos(h)*S.CesiumMath.negativePiToPi(t):(u=Math.sin(h),s*Math.cos(h)*S.CesiumMath.negativePiToPi(t)/Math.sqrt(1-n._ellipticitySquared*u*u)):(t=W(n._ellipticity,s,h),(W(n._ellipticity,s,e)-t)/Math.cos(i)),Math.abs(o))}function o(t,i,a,e,n,s){var h,u,o,l,d,r,M,c,m,_,g,p,C,P,f,O,E,v,I,T;return 0===a?R.Cartographic.clone(t,s):(h=n*n,o=Math.abs(S.CesiumMath.PI_OVER_TWO-Math.abs(i))>S.CesiumMath.EPSILON8?(u=W(n,e,t.latitude),l=a*Math.cos(i),u=u+l,u/=l=e,C=0===(o=n)?u:(r=(d=(l=u*u)*u)*u,g=(_=(m=(c=(M=(o=o*o)*o)*o)*o)*o)*o,p=Math.sin(2*u),C=Math.cos(2*u),P=Math.sin(4*u),f=Math.cos(4*u),O=Math.sin(6*u),E=Math.cos(6*u),v=Math.sin(8*u),I=Math.cos(8*u),T=Math.sin(10*u),u+u*o/4+7*u*M/64+15*u*c/256+579*u*m/16384+1515*u*_/65536+16837*u*g/1048576+(3*u*M/16+45*u*c/256-u*(32*l-561)*m/4096-u*(232*l-1677)*_/16384+u*(399985-90560*l+512*r)*g/5242880)*C+(21*u*c/256+483*u*m/4096-u*(224*l-1969)*_/16384-u*(33152*l-112599)*g/1048576)*f+(151*u*m/4096+4681*u*_/65536+1479*u*g/16384-453*d*g/32768)*E+(1097*u*_/65536+42783*u*g/1048576)*I+8011*u*g/1048576*Math.cos(10*u)+(3*o/8+3*M/16+213*c/2048-3*l*c/64+255*m/4096-33*l*m/512+20861*_/524288-33*l*_/512+r*_/1024+28273*g/1048576-471*l*g/8192+9*r*g/4096)*p+(21*M/256+21*c/256+533*m/8192-21*l*m/512+197*_/4096-315*l*_/4096+584039*g/16777216-12517*l*g/131072+7*r*g/2048)*P+(151*c/6144+151*m/4096+5019*_/131072-453*l*_/16384+26965*g/786432-8607*l*g/131072)*O+(1097*m/131072+1097*_/65536+225797*g/10485760-1097*l*g/65536)*v+(8011*_/2621440+8011*g/1048576)*T+293393*g/251658240*Math.sin(12*u)),f=q(n,t.latitude),d=q(n,C),E=Math.tan(i)*(d-f),S.CesiumMath.negativePiToPi(t.longitude+E)):(C=t.latitude,E=a/(0===n?e*Math.cos(t.latitude):(I=Math.sin(t.latitude),e*Math.cos(t.latitude)/Math.sqrt(1-h*I*I))),0<i?S.CesiumMath.negativePiToPi(t.longitude+E):S.CesiumMath.negativePiToPi(t.longitude-E)),y.defined(s)?(s.longitude=o,s.latitude=C,s.height=0,s):new R.Cartographic(o,C,0))}function r(t,i,a){a=y.defaultValue(a,R.Ellipsoid.WGS84);this._ellipsoid=a,this._start=new R.Cartographic,this._end=new R.Cartographic,this._heading=void 0,this._distance=void 0,this._ellipticity=void 0,this._ellipticitySquared=void 0,y.defined(t)&&y.defined(i)&&e(this,t,i,a)}Object.defineProperties(r.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},heading:{get:function(){return this._heading}}}),r.fromStartHeadingDistance=function(t,i,a,e,n){var s=y.defaultValue(e,R.Ellipsoid.WGS84),h=s.maximumRadius,u=s.minimumRadius,h=h*h,u=Math.sqrt((h-u*u)/h),h=o(t,i=S.CesiumMath.negativePiToPi(i),a,s.maximumRadius,u);return!y.defined(n)||y.defined(e)&&!e.equals(n.ellipsoid)?new r(t,h,s):(n.setEndPoints(t,h),n)},r.prototype.setEndPoints=function(t,i){e(this,t,i,this._ellipsoid)},r.prototype.interpolateUsingFraction=function(t,i){return this.interpolateUsingSurfaceDistance(t*this._distance,i)},r.prototype.interpolateUsingSurfaceDistance=function(t,i){return o(this._start,this._heading,t,this._ellipsoid.maximumRadius,this._ellipticity,i)},r.prototype.findIntersectionWithLongitude=function(t,i){var a=this._ellipticity,e=this._heading,n=Math.abs(e),s=this._start;if(t=S.CesiumMath.negativePiToPi(t),S.CesiumMath.equalsEpsilon(Math.abs(t),Math.PI,S.CesiumMath.EPSILON14)&&(t=S.CesiumMath.sign(s.longitude)*Math.PI),y.defined(i)||(i=new R.Cartographic),Math.abs(S.CesiumMath.PI_OVER_TWO-n)<=S.CesiumMath.EPSILON8)i.longitude=t,i.latitude=s.latitude;else{if(S.CesiumMath.equalsEpsilon(Math.abs(S.CesiumMath.PI_OVER_TWO-n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return S.CesiumMath.equalsEpsilon(t,s.longitude,S.CesiumMath.EPSILON12)?void 0:(i.longitude=t,i.latitude=S.CesiumMath.PI_OVER_TWO*S.CesiumMath.sign(S.CesiumMath.PI_OVER_TWO-e),i.height=0,i);var n=s.latitude,h=a*Math.sin(n),u=Math.tan(.5*(S.CesiumMath.PI_OVER_TWO+n))*Math.exp((t-s.longitude)/Math.tan(e)),o=(1+h)/(1-h),l=s.latitude;do{var d=l,r=a*Math.sin(d),l=2*Math.atan(u*Math.pow((1+r)/(1-r)/o,a/2))-S.CesiumMath.PI_OVER_TWO}while(!S.CesiumMath.equalsEpsilon(l,d,S.CesiumMath.EPSILON12));i.longitude=t,i.latitude=l}return i.height=0,i},r.prototype.findIntersectionWithLatitude=function(t,i){var a,e=this._ellipticity,n=this._heading,s=this._start;if(!S.CesiumMath.equalsEpsilon(Math.abs(n),S.CesiumMath.PI_OVER_TWO,S.CesiumMath.EPSILON8))return a=q(e,s.latitude),e=q(e,t),n=Math.tan(n)*(e-a),e=S.CesiumMath.negativePiToPi(s.longitude+n),y.defined(i)?(i.longitude=e,i.latitude=t,i.height=0,i):new R.Cartographic(e,t,0)},t.EllipsoidRhumbLine=r});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-3005be1a","./Cartesian2-078e6458","./Transforms-5aeb1d5e","./Check-f996273c","./when-ae2e0b60","./IntersectionTests-5403be00","./Plane-0ec594f2"],function(e,n,s,i,t,l,r,a){"use strict";var o=new i.Cartesian4;function d(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=i.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,2,o)));this._plane=a.Plane.fromPointNormal(e,t)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var c=new n.AxisAlignedBoundingBox,p=(d.fromPoints=function(e,t){return new d(n.AxisAlignedBoundingBox.fromPoints(e,c).center,t)},new r.Ray),f=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,t){var n=p,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},d.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},d.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=p,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},d.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},d.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=d});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-fe8fad3e","./Cartesian2-c1eb9da0","./Transforms-8c8e0c6f","./Check-f996273c","./when-ae2e0b60","./IntersectionTests-46ce3a3a","./Plane-0f30f65b"],function(e,n,s,i,t,l,r,a){"use strict";var o=new i.Cartesian4;function c(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=i.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,2,o)));this._plane=a.Plane.fromPointNormal(e,t)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var d=new n.AxisAlignedBoundingBox,f=(c.fromPoints=function(e,t){return new c(n.AxisAlignedBoundingBox.fromPoints(e,d).center,t)},new r.Ray),p=new s.Cartesian3,u=(c.prototype.projectPointOntoPlane=function(e,t){var n=f,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),r.IntersectionTests.rayPlane(n,this._plane,p));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,p)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},c.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},c.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=f,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),r.IntersectionTests.rayPlane(n,this._plane,p)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,p)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},c.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);c.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},c.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=c});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-73a9d462","./Cartesian2-c1eb9da0","./Transforms-1fa85493","./Check-f996273c","./when-ae2e0b60","./IntersectionTests-318fd637","./Plane-fa12edbb"],function(e,n,s,i,t,l,r,a){"use strict";var o=new i.Cartesian4;function d(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=i.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,2,o)));this._plane=a.Plane.fromPointNormal(e,t)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var c=new n.AxisAlignedBoundingBox,f=(d.fromPoints=function(e,t){return new d(n.AxisAlignedBoundingBox.fromPoints(e,c).center,t)},new r.Ray),p=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,t){var n=f,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),r.IntersectionTests.rayPlane(n,this._plane,p));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,p)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},d.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},d.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=f,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),r.IntersectionTests.rayPlane(n,this._plane,p)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,p)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},d.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},d.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=d});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-cf02d6c7","./Cartesian2-078e6458","./Transforms-984eb057","./Check-f996273c","./when-ae2e0b60","./IntersectionTests-ca6d4041","./Plane-fa98d6ca"],function(e,n,s,i,t,l,r,a){"use strict";var o=new i.Cartesian4;function d(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=i.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,2,o)));this._plane=a.Plane.fromPointNormal(e,t)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var c=new n.AxisAlignedBoundingBox,p=(d.fromPoints=function(e,t){return new d(n.AxisAlignedBoundingBox.fromPoints(e,c).center,t)},new r.Ray),f=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,t){var n=p,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},d.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},d.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=p,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},d.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},d.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=d});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-6524b214","./Cartesian2-c1eb9da0","./Transforms-713e2e92","./Check-f996273c","./when-ae2e0b60","./IntersectionTests-f3d5850d","./Plane-d53c8e90"],function(e,n,s,i,t,l,r,a){"use strict";var o=new i.Cartesian4;function d(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=i.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(i.Matrix4.getColumn(n,2,o)));this._plane=a.Plane.fromPointNormal(e,t)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var c=new n.AxisAlignedBoundingBox,p=(d.fromPoints=function(e,t){return new d(n.AxisAlignedBoundingBox.fromPoints(e,c).center,t)},new r.Ray),f=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,t){var n=p,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},d.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},d.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=p,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),r.IntersectionTests.rayPlane(n,this._plane,f)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=r.IntersectionTests.rayPlane(n,this._plane,f)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},d.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},d.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=d});
@@ -1 +0,0 @@
1
- define(["exports","./AxisAlignedBoundingBox-d2a93b66","./Matrix2-10a61a55","./RuntimeError-24b14c10","./when-ae2e0b60","./IntersectionTests-7cdfef0c","./Plane-f7823f4c","./Transforms-70ded1e8"],function(e,n,s,t,l,i,r,a){"use strict";var o=new s.Cartesian4;function d(e,t){e=(t=l.defaultValue(t,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var n=a.Transforms.eastNorthUpToFixedFrame(e,t),t=(this._ellipsoid=t,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(n,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(n,1,o)),s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(n,2,o)));this._plane=r.Plane.fromPointNormal(e,t)}Object.defineProperties(d.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var c=new n.AxisAlignedBoundingBox,f=(d.fromPoints=function(e,t){return new d(n.AxisAlignedBoundingBox.fromPoints(e,c).center,t)},new i.Ray),p=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,t){var n=f,e=(n.origin=e,s.Cartesian3.normalize(e,n.direction),i.IntersectionTests.rayPlane(n,this._plane,p));if(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=i.IntersectionTests.rayPlane(n,this._plane,p)),l.defined(e))return n=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n),l.defined(t)?(t.x=e,t.y=n,t):new s.Cartesian2(e,n)},d.prototype.projectPointsOntoPlane=function(e,t){l.defined(t)||(t=[]);for(var n=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],t[n]);l.defined(a)&&(t[n]=a,n++)}return t.length=n,t},d.prototype.projectPointToNearestOnPlane=function(e,t){l.defined(t)||(t=new s.Cartesian2);var n=f,e=(n.origin=e,s.Cartesian3.clone(this._plane.normal,n.direction),i.IntersectionTests.rayPlane(n,this._plane,p)),n=(l.defined(e)||(s.Cartesian3.negate(n.direction,n.direction),e=i.IntersectionTests.rayPlane(n,this._plane,p)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,n),n=s.Cartesian3.dot(this._yAxis,n);return t.x=e,t.y=n,t},d.prototype.projectPointsToNearestOnPlane=function(e,t){l.defined(t)||(t=[]);var n=e.length;t.length=n;for(var i=0;i<n;i++)t[i]=this.projectPointToNearestOnPlane(e[i],t[i]);return t},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,t){l.defined(t)||(t=new s.Cartesian3);var n=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),t=s.Cartesian3.add(i,o,t),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(t,o,t),n.scaleToGeocentricSurface(t,t),t},d.prototype.projectPointsOntoEllipsoid=function(e,t){var n=e.length;l.defined(t)?t.length=n:t=new Array(n);for(var i=0;i<n;++i)t[i]=this.projectPointOntoEllipsoid(e[i],t[i]);return t},e.EllipsoidTangentPlane=d});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60"],function(e,n,i,h){"use strict";function a(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}a.encode=function(e,n){var i;return h.defined(n)||(n={high:0,low:0}),0<=e?(i=65536*Math.floor(e/65536),n.high=i,n.low=e-i):(i=65536*Math.floor(-e/65536),n.high=-i,n.low=e+i),n};var t={high:0,low:0},r=(a.fromCartesian=function(e,n){var i=(n=h.defined(n)?n:new a).high,o=n.low;return a.encode(e.x,t),i.x=t.high,o.x=t.low,a.encode(e.y,t),i.y=t.high,o.y=t.low,a.encode(e.z,t),i.z=t.high,o.z=t.low,n},new a);a.writeElements=function(e,n,i){a.fromCartesian(e,r);var e=r.high,o=r.low;n[i]=e.x,n[i+1]=e.y,n[i+2]=e.z,n[i+3]=o.x,n[i+4]=o.y,n[i+5]=o.z},e.EncodedCartesian3=a});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60"],function(e,n,i,h){"use strict";function t(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}t.encode=function(e,n){var i;return h.defined(n)||(n={high:0,low:0}),0<=e?(i=65536*Math.floor(e/65536),n.high=i,n.low=e-i):(i=65536*Math.floor(-e/65536),n.high=-i,n.low=e+i),n};var a={high:0,low:0},r=(t.fromCartesian=function(e,n){var i=(n=h.defined(n)?n:new t).high,o=n.low;return t.encode(e.x,a),i.x=a.high,o.x=a.low,t.encode(e.y,a),i.y=a.high,o.y=a.low,t.encode(e.z,a),i.z=a.high,o.z=a.low,n},new t);t.writeElements=function(e,n,i){t.fromCartesian(e,r);var e=r.high,o=r.low;n[i]=e.x,n[i+1]=e.y,n[i+2]=e.z,n[i+3]=o.x,n[i+4]=o.y,n[i+5]=o.z},e.EncodedCartesian3=t});
@@ -1 +0,0 @@
1
- define(["exports","./Matrix2-10a61a55","./RuntimeError-24b14c10","./when-ae2e0b60"],function(e,n,i,r){"use strict";function h(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}h.encode=function(e,n){var i;return r.defined(n)||(n={high:0,low:0}),0<=e?(i=65536*Math.floor(e/65536),n.high=i,n.low=e-i):(i=65536*Math.floor(-e/65536),n.high=-i,n.low=e+i),n};var t={high:0,low:0},a=(h.fromCartesian=function(e,n){var i=(n=r.defined(n)?n:new h).high,o=n.low;return h.encode(e.x,t),i.x=t.high,o.x=t.low,h.encode(e.y,t),i.y=t.high,o.y=t.low,h.encode(e.z,t),i.z=t.high,o.z=t.low,n},new h);h.writeElements=function(e,n,i){h.fromCartesian(e,a);var e=a.high,o=a.low;n[i]=e.x,n[i+1]=e.y,n[i+2]=e.z,n[i+3]=o.x,n[i+4]=o.y,n[i+5]=o.z},e.EncodedCartesian3=h});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./Math-5bbcea10","./Plane-0ec594f2","./VertexFormat-90d15264"],function(t,g,w,a,v,x,b,M,i,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new g.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=g.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new g.Cartesian4),x.defined(l)||(l=i[o+1]=new g.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,I=new w.Cartesian3,_=new w.Cartesian3;function y(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function s(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new g.Matrix4,this._infinitePerspective=new g.Matrix4}function F(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=g.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=g.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),I),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,_),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,_),f),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,_),f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},y.packedLength=4,y.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},y.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new y).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(y.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),y.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},y.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},y.prototype.clone=function(t){return(t=x.defined(t)?t:new y).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},y.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},y.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),i.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(s.prototype,{projectionMatrix:{get:function(){return F(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return F(this),this._infinitePerspective}}});var q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3,N=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new s,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}s.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,q),h=B,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),L),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),N),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},s.prototype.getPixelDimensions=function(t,e,a,i,n){F(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},s.prototype.clone=function(t){return(t=x.defined(t)?t:new s).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},s.prototype.equals=function(t){return x.defined(t)&&t instanceof s&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},s.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof s&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),i.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof y&&(e=1,a=y.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(y.pack(n,e,a),a+=y.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var G=new V,j=new y,U=new g.Quaternion,Q=new w.Cartesian3,K=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,G),e+=V.packedLength):(i=y.unpack(t,e,j),e+=y.packedLength),w.Cartesian3.unpack(t,e,Q)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,U)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,K)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var Y=new g.Matrix3,J=new g.Matrix4,z=new g.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,Z=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new g.Cartesian4(-1,-1,1,1),A[1]=new g.Cartesian4(1,-1,1,1),A[2]=new g.Cartesian4(1,1,1,1),A[3]=new g.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new g.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=g.Matrix3.fromQuaternion(e,Y),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=g.Matrix3.getColumn(e,0,r),o=g.Matrix3.getColumn(e,1,o),l=g.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),g.Matrix4.computeView(t,l,o,r,J));0===a?(e=i.projectionMatrix,o=g.Matrix4.multiply(e,s,z),u=g.Matrix4.inverse(o,z)):f=g.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=g.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=g.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,g.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new M.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,W),o=w.Cartesian3.negate(i,X),s=w.Cartesian3.negate(n,Z),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new b.Geometry({attributes:h,indices:m,primitiveType:b.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=y,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./Math-5bbcea10","./Plane-d53c8e90","./VertexFormat-90d15264"],function(t,g,w,a,v,x,M,b,i,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new g.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=g.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new g.Cartesian4),x.defined(l)||(l=i[o+1]=new g.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,I=new w.Cartesian3,_=new w.Cartesian3;function y(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function s(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new g.Matrix4,this._infinitePerspective=new g.Matrix4}function F(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=g.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=g.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),I),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,_),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,_),f),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,_),f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},y.packedLength=4,y.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},y.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new y).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(y.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),y.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},y.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},y.prototype.clone=function(t){return(t=x.defined(t)?t:new y).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},y.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},y.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),i.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(s.prototype,{projectionMatrix:{get:function(){return F(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return F(this),this._infinitePerspective}}});var q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3,N=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new s,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}s.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,q),h=B,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),L),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),N),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},s.prototype.getPixelDimensions=function(t,e,a,i,n){F(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},s.prototype.clone=function(t){return(t=x.defined(t)?t:new s).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},s.prototype.equals=function(t){return x.defined(t)&&t instanceof s&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},s.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof s&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),i.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof y&&(e=1,a=y.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(y.pack(n,e,a),a+=y.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var G=new V,j=new y,U=new g.Quaternion,Q=new w.Cartesian3,K=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,G),e+=V.packedLength):(i=y.unpack(t,e,j),e+=y.packedLength),w.Cartesian3.unpack(t,e,Q)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,U)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,K)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var Y=new g.Matrix3,J=new g.Matrix4,z=new g.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,Z=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new g.Cartesian4(-1,-1,1,1),A[1]=new g.Cartesian4(1,-1,1,1),A[2]=new g.Cartesian4(1,1,1,1),A[3]=new g.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new g.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=g.Matrix3.fromQuaternion(e,Y),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=g.Matrix3.getColumn(e,0,r),o=g.Matrix3.getColumn(e,1,o),l=g.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),g.Matrix4.computeView(t,l,o,r,J));0===a?(e=i.projectionMatrix,o=g.Matrix4.multiply(e,s,z),u=g.Matrix4.inverse(o,z)):f=g.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=g.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=g.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,g.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new b.GeometryAttributes({position:new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,W),o=w.Cartesian3.negate(i,X),s=w.Cartesian3.negate(n,Z),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new M.Geometry({attributes:h,indices:m,primitiveType:M.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=y,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./Math-5bbcea10","./Plane-0f30f65b","./VertexFormat-90d15264"],function(t,g,w,a,v,x,b,M,i,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new g.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=g.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new g.Cartesian4),x.defined(l)||(l=i[o+1]=new g.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,I=new w.Cartesian3,_=new w.Cartesian3;function y(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function s(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new g.Matrix4,this._infinitePerspective=new g.Matrix4}function F(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=g.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=g.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),I),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,_),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,_),f),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,_),f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},y.packedLength=4,y.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},y.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new y).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(y.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),y.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},y.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},y.prototype.clone=function(t){return(t=x.defined(t)?t:new y).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},y.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},y.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),i.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(s.prototype,{projectionMatrix:{get:function(){return F(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return F(this),this._infinitePerspective}}});var q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3,N=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new s,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}s.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,q),h=B,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),L),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),N),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},s.prototype.getPixelDimensions=function(t,e,a,i,n){F(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},s.prototype.clone=function(t){return(t=x.defined(t)?t:new s).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},s.prototype.equals=function(t){return x.defined(t)&&t instanceof s&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},s.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof s&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),i.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof y&&(e=1,a=y.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(y.pack(n,e,a),a+=y.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var G=new V,j=new y,U=new g.Quaternion,Q=new w.Cartesian3,K=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,G),e+=V.packedLength):(i=y.unpack(t,e,j),e+=y.packedLength),w.Cartesian3.unpack(t,e,Q)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,U)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,K)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var Y=new g.Matrix3,J=new g.Matrix4,z=new g.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,Z=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new g.Cartesian4(-1,-1,1,1),A[1]=new g.Cartesian4(1,-1,1,1),A[2]=new g.Cartesian4(1,1,1,1),A[3]=new g.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new g.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=g.Matrix3.fromQuaternion(e,Y),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=g.Matrix3.getColumn(e,0,r),o=g.Matrix3.getColumn(e,1,o),l=g.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),g.Matrix4.computeView(t,l,o,r,J));0===a?(e=i.projectionMatrix,o=g.Matrix4.multiply(e,s,z),u=g.Matrix4.inverse(o,z)):f=g.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=g.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=g.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,g.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new M.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,W),o=w.Cartesian3.negate(i,X),s=w.Cartesian3.negate(n,Z),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new b.Geometry({attributes:h,indices:m,primitiveType:b.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=y,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-984eb057","./Cartesian2-078e6458","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./Math-5bbcea10","./Plane-fa98d6ca","./VertexFormat-90d15264"],function(t,g,w,a,v,x,M,b,i,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new g.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=g.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new g.Cartesian4),x.defined(l)||(l=i[o+1]=new g.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,I=new w.Cartesian3,_=new w.Cartesian3;function y(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function s(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new g.Matrix4,this._infinitePerspective=new g.Matrix4}function F(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=g.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=g.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),I),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,_),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,_),f),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,_),f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},y.packedLength=4,y.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},y.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new y).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(y.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),y.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},y.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},y.prototype.clone=function(t){return(t=x.defined(t)?t:new y).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},y.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},y.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),i.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(s.prototype,{projectionMatrix:{get:function(){return F(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return F(this),this._infinitePerspective}}});var q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3,N=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new s,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}s.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,q),h=B,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),L),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),N),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},s.prototype.getPixelDimensions=function(t,e,a,i,n){F(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},s.prototype.clone=function(t){return(t=x.defined(t)?t:new s).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},s.prototype.equals=function(t){return x.defined(t)&&t instanceof s&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},s.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof s&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),i.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof y&&(e=1,a=y.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(y.pack(n,e,a),a+=y.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var G=new V,j=new y,U=new g.Quaternion,Q=new w.Cartesian3,K=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,G),e+=V.packedLength):(i=y.unpack(t,e,j),e+=y.packedLength),w.Cartesian3.unpack(t,e,Q)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,U)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,K)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var Y=new g.Matrix3,J=new g.Matrix4,z=new g.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,Z=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new g.Cartesian4(-1,-1,1,1),A[1]=new g.Cartesian4(1,-1,1,1),A[2]=new g.Cartesian4(1,1,1,1),A[3]=new g.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new g.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=g.Matrix3.fromQuaternion(e,Y),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=g.Matrix3.getColumn(e,0,r),o=g.Matrix3.getColumn(e,1,o),l=g.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),g.Matrix4.computeView(t,l,o,r,J));0===a?(e=i.projectionMatrix,o=g.Matrix4.multiply(e,s,z),u=g.Matrix4.inverse(o,z)):f=g.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=g.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=g.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,g.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new b.GeometryAttributes({position:new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,W),o=w.Cartesian3.negate(i,X),s=w.Cartesian3.negate(n,Z),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new M.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new M.Geometry({attributes:h,indices:m,primitiveType:M.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=y,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./Math-5bbcea10","./Plane-fa12edbb","./VertexFormat-90d15264"],function(t,g,w,a,v,x,b,M,i,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new g.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=g.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new g.Cartesian4),x.defined(l)||(l=i[o+1]=new g.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,I=new w.Cartesian3,_=new w.Cartesian3;function y(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function s(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new g.Matrix4,this._infinitePerspective=new g.Matrix4}function F(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=g.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=g.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),I),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,_),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,_),f),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,_),f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},y.packedLength=4,y.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},y.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new y).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(y.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),y.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},y.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},y.prototype.clone=function(t){return(t=x.defined(t)?t:new y).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},y.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},y.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof y)&&(r(this),r(t),i.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(s.prototype,{projectionMatrix:{get:function(){return F(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return F(this),this._infinitePerspective}}});var q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3,N=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new s,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}s.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,q),h=B,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),L),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),N),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new g.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new g.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},s.prototype.getPixelDimensions=function(t,e,a,i,n){F(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},s.prototype.clone=function(t){return(t=x.defined(t)?t:new s).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},s.prototype.equals=function(t){return x.defined(t)&&t instanceof s&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},s.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof s&&i.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&i.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&i.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&i.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&i.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&i.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),i.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&i.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof y&&(e=1,a=y.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(y.pack(n,e,a),a+=y.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var G=new V,j=new y,U=new g.Quaternion,Q=new w.Cartesian3,K=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,G),e+=V.packedLength):(i=y.unpack(t,e,j),e+=y.packedLength),w.Cartesian3.unpack(t,e,Q)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,U)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,K)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var Y=new g.Matrix3,J=new g.Matrix4,z=new g.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,Z=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new g.Cartesian4(-1,-1,1,1),A[1]=new g.Cartesian4(1,-1,1,1),A[2]=new g.Cartesian4(1,1,1,1),A[3]=new g.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new g.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=g.Matrix3.fromQuaternion(e,Y),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=g.Matrix3.getColumn(e,0,r),o=g.Matrix3.getColumn(e,1,o),l=g.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),g.Matrix4.computeView(t,l,o,r,J));0===a?(e=i.projectionMatrix,o=g.Matrix4.multiply(e,s,z),u=g.Matrix4.inverse(o,z)):f=g.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=g.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=g.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,g.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new M.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,W),o=w.Cartesian3.negate(i,X),s=w.Cartesian3.negate(n,Z),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new b.Geometry({attributes:h,indices:m,primitiveType:b.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=y,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["exports","./Transforms-70ded1e8","./Matrix2-10a61a55","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./Plane-f7823f4c","./VertexFormat-1fc9746e"],function(t,g,w,a,v,x,b,M,f,u){"use strict";function h(t){this.planes=x.defaultValue(t,[])}var p=[new w.Cartesian3,new w.Cartesian3,new w.Cartesian3],d=(w.Cartesian3.clone(w.Cartesian3.UNIT_X,p[0]),w.Cartesian3.clone(w.Cartesian3.UNIT_Y,p[1]),w.Cartesian3.clone(w.Cartesian3.UNIT_Z,p[2]),new w.Cartesian3),c=new w.Cartesian3,l=new f.Plane(new w.Cartesian3(1,0,0),0);function i(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._orthographicMatrix=new w.Matrix4}function o(t){t.top===t._top&&t.bottom===t._bottom&&t.left===t._left&&t.right===t._right&&t.near===t._near&&t.far===t._far||(t._left=t.left,t._right=t.right,t._top=t.top,t._bottom=t.bottom,t._near=t.near,t._far=t.far,t._orthographicMatrix=w.Matrix4.computeOrthographicOffCenter(t.left,t.right,t.bottom,t.top,t.near,t.far,t._orthographicMatrix))}h.fromBoundingSphere=function(t,e){x.defined(e)||(e=new h);for(var a=p.length,i=e.planes,n=(i.length=2*a,t.center),r=t.radius,o=0,s=0;s<a;++s){var f=p[s],u=i[o],l=i[o+1];x.defined(u)||(u=i[o]=new w.Cartesian4),x.defined(l)||(l=i[o+1]=new w.Cartesian4),w.Cartesian3.multiplyByScalar(f,-r,d),w.Cartesian3.add(n,d,d),u.x=f.x,u.y=f.y,u.z=f.z,u.w=-w.Cartesian3.dot(f,d),w.Cartesian3.multiplyByScalar(f,r,d),w.Cartesian3.add(n,d,d),l.x=-f.x,l.y=-f.y,l.z=-f.z,l.w=-w.Cartesian3.dot(w.Cartesian3.negate(f,c),d),o+=2}return e},h.prototype.computeVisibility=function(t){for(var e=this.planes,a=!1,i=0,n=e.length;i<n;++i){var r=t.intersectPlane(f.Plane.fromCartesian4(e[i],l));if(r===g.Intersect.OUTSIDE)return g.Intersect.OUTSIDE;r===g.Intersect.INTERSECTING&&(a=!0)}return a?g.Intersect.INTERSECTING:g.Intersect.INSIDE},h.prototype.computeVisibilityWithPlaneMask=function(t,e){if(e===h.MASK_OUTSIDE||e===h.MASK_INSIDE)return e;for(var a=h.MASK_INSIDE,i=this.planes,n=0,r=i.length;n<r;++n){var o=n<31?1<<n:0;if(!(n<31&&0==(e&o))){var s=t.intersectPlane(f.Plane.fromCartesian4(i[n],l));if(s===g.Intersect.OUTSIDE)return h.MASK_OUTSIDE;s===g.Intersect.INTERSECTING&&(a|=o)}}return a},h.MASK_OUTSIDE=4294967295,h.MASK_INSIDE=0,h.MASK_INDETERMINATE=2147483647,Object.defineProperties(i.prototype,{projectionMatrix:{get:function(){return o(this),this._orthographicMatrix}}});var m=new w.Cartesian3,C=new w.Cartesian3,_=new w.Cartesian3,y=new w.Cartesian3;function F(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new i,this.width=t.width,this._width=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far}function r(t){var e,a=t._offCenterFrustum;t.width===t._width&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far||(t._aspectRatio=t.aspectRatio,t._width=t.width,t._near=t.near,t._far=t.far,e=1/t.aspectRatio,a.right=.5*t.width,a.left=-a.right,a.top=e*a.right,a.bottom=-a.top,a.near=t.near,a.far=t.far)}function n(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this._cullingVolume=new h,this._perspectiveMatrix=new w.Matrix4,this._infinitePerspective=new w.Matrix4}function s(t){var e=t.top,a=t.bottom,i=t.right,n=t.left,r=t.near,o=t.far;e===t._top&&a===t._bottom&&n===t._left&&i===t._right&&r===t._near&&o===t._far||(t._left=n,t._right=i,t._top=e,t._bottom=a,t._near=r,t._far=o,t._perspectiveMatrix=w.Matrix4.computePerspectiveOffCenter(n,i,a,e,r,o,t._perspectiveMatrix),t._infinitePerspective=w.Matrix4.computeInfinitePerspectiveOffCenter(n,i,a,e,r,t._infinitePerspective))}i.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,m),h=(w.Cartesian3.normalize(l,l),C),f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),_),s=(w.Cartesian3.multiplyByScalar(l,s,f),w.Cartesian3.add(h,f,f),i[0]);return(s=x.defined(s)?s:i[0]=new w.Cartesian4).x=l.x,s.y=l.y,s.z=l.z,s.w=-w.Cartesian3.dot(l,f),w.Cartesian3.multiplyByScalar(l,o,f),w.Cartesian3.add(h,f,f),s=i[1],(s=x.defined(s)?s:i[1]=new w.Cartesian4).x=-l.x,s.y=-l.y,s.z=-l.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(l,y),f),w.Cartesian3.multiplyByScalar(a,r,f),w.Cartesian3.add(h,f,f),s=i[2],(s=x.defined(s)?s:i[2]=new w.Cartesian4).x=a.x,s.y=a.y,s.z=a.z,s.w=-w.Cartesian3.dot(a,f),w.Cartesian3.multiplyByScalar(a,n,f),w.Cartesian3.add(h,f,f),s=i[3],(s=x.defined(s)?s:i[3]=new w.Cartesian4).x=-a.x,s.y=-a.y,s.z=-a.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(a,y),f),s=i[4],(s=x.defined(s)?s:i[4]=new w.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),s=i[5],(s=x.defined(s)?s:i[5]=new w.Cartesian4).x=-e.x,s.y=-e.y,s.z=-e.z,s.w=-w.Cartesian3.dot(w.Cartesian3.negate(e,y),f),this._cullingVolume},i.prototype.getPixelDimensions=function(t,e,a,i,n){o(this);var r=this.right-this.left,e=i*(this.top-this.bottom)/e;return n.x=i*r/t,n.y=e,n},i.prototype.clone=function(t){return(t=x.defined(t)?t:new i).left=this.left,t.right=this.right,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},i.prototype.equals=function(t){return x.defined(t)&&t instanceof i&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},i.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof i&&v.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&v.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&v.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&v.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&v.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&v.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},F.packedLength=4,F.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.width,e[a++]=t.aspectRatio,e[a++]=t.near,e[a]=t.far,e},F.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new F).width=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e],a},Object.defineProperties(F.prototype,{projectionMatrix:{get:function(){return r(this),this._offCenterFrustum.projectionMatrix}}}),F.prototype.computeCullingVolume=function(t,e,a){return r(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},F.prototype.getPixelDimensions=function(t,e,a,i,n){return r(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},F.prototype.clone=function(t){return(t=x.defined(t)?t:new F).aspectRatio=this.aspectRatio,t.width=this.width,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._width=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},F.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof F)&&(r(this),r(t),this.width===t.width)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},F.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof F)&&(r(this),r(t),v.CesiumMath.equalsEpsilon(this.width,t.width,e,a))&&v.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)},Object.defineProperties(n.prototype,{projectionMatrix:{get:function(){return s(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return s(this),this._infinitePerspective}}});var I=new w.Cartesian3,q=new w.Cartesian3,B=new w.Cartesian3,L=new w.Cartesian3;function V(t){t=x.defaultValue(t,x.defaultValue.EMPTY_OBJECT),this._offCenterFrustum=new n,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=x.defaultValue(t.near,1),this._near=this.near,this.far=x.defaultValue(t.far,5e8),this._far=this.far,this.xOffset=x.defaultValue(t.xOffset,0),this._xOffset=this.xOffset,this.yOffset=x.defaultValue(t.yOffset,0),this._yOffset=this.yOffset}function E(t){var e=t._offCenterFrustum;t.fov===t._fov&&t.aspectRatio===t._aspectRatio&&t.near===t._near&&t.far===t._far&&t.xOffset===t._xOffset&&t.yOffset===t._yOffset||(t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,e.top=t.near*Math.tan(.5*t._fovy),e.bottom=-e.top,e.right=t.aspectRatio*e.top,e.left=-e.right,e.near=t.near,e.far=t.far,e.right+=t.xOffset,e.left+=t.xOffset,e.top+=t.yOffset,e.bottom+=t.yOffset)}n.prototype.computeCullingVolume=function(t,e,a){var i=this._cullingVolume.planes,n=this.top,r=this.bottom,o=this.right,s=this.left,f=this.near,u=this.far,l=w.Cartesian3.cross(e,a,I),h=q,f=(w.Cartesian3.multiplyByScalar(e,f,h),w.Cartesian3.add(t,h,h),B),u=(w.Cartesian3.multiplyByScalar(e,u,f),w.Cartesian3.add(t,f,f),L),s=(w.Cartesian3.multiplyByScalar(l,s,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.normalize(u,u),w.Cartesian3.cross(u,a,u),w.Cartesian3.normalize(u,u),i[0]);return(s=x.defined(s)?s:i[0]=new w.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(l,o,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(a,u,u),w.Cartesian3.normalize(u,u),s=i[1],(s=x.defined(s)?s:i[1]=new w.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,r,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(l,u,u),w.Cartesian3.normalize(u,u),s=i[2],(s=x.defined(s)?s:i[2]=new w.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),w.Cartesian3.multiplyByScalar(a,n,u),w.Cartesian3.add(h,u,u),w.Cartesian3.subtract(u,t,u),w.Cartesian3.cross(u,l,u),w.Cartesian3.normalize(u,u),s=i[3],(s=x.defined(s)?s:i[3]=new w.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,t),s=i[4],(s=x.defined(s)?s:i[4]=new w.Cartesian4).x=e.x,s.y=e.y,s.z=e.z,s.w=-w.Cartesian3.dot(e,h),w.Cartesian3.negate(e,u),s=i[5],(s=x.defined(s)?s:i[5]=new w.Cartesian4).x=u.x,s.y=u.y,s.z=u.z,s.w=-w.Cartesian3.dot(u,f),this._cullingVolume},n.prototype.getPixelDimensions=function(t,e,a,i,n){s(this);var r=1/this.near,e=2*i*a*(this.top*r)/e,r=this.right*r;return n.x=2*i*a*r/t,n.y=e,n},n.prototype.clone=function(t){return(t=x.defined(t)?t:new n).right=this.right,t.left=this.left,t.top=this.top,t.bottom=this.bottom,t.near=this.near,t.far=this.far,t._left=void 0,t._right=void 0,t._top=void 0,t._bottom=void 0,t._near=void 0,t._far=void 0,t},n.prototype.equals=function(t){return x.defined(t)&&t instanceof n&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far},n.prototype.equalsEpsilon=function(t,e,a){return t===this||x.defined(t)&&t instanceof n&&v.CesiumMath.equalsEpsilon(this.right,t.right,e,a)&&v.CesiumMath.equalsEpsilon(this.left,t.left,e,a)&&v.CesiumMath.equalsEpsilon(this.top,t.top,e,a)&&v.CesiumMath.equalsEpsilon(this.bottom,t.bottom,e,a)&&v.CesiumMath.equalsEpsilon(this.near,t.near,e,a)&&v.CesiumMath.equalsEpsilon(this.far,t.far,e,a)},V.packedLength=6,V.pack=function(t,e,a){return a=x.defaultValue(a,0),e[a++]=t.fov,e[a++]=t.aspectRatio,e[a++]=t.near,e[a++]=t.far,e[a++]=t.xOffset,e[a]=t.yOffset,e},V.unpack=function(t,e,a){return e=x.defaultValue(e,0),(a=x.defined(a)?a:new V).fov=t[e++],a.aspectRatio=t[e++],a.near=t[e++],a.far=t[e++],a.xOffset=t[e++],a.yOffset=t[e],a},Object.defineProperties(V.prototype,{projectionMatrix:{get:function(){return E(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return E(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return E(this),this._fovy}},sseDenominator:{get:function(){return E(this),this._sseDenominator}}}),V.prototype.computeCullingVolume=function(t,e,a){return E(this),this._offCenterFrustum.computeCullingVolume(t,e,a)},V.prototype.getPixelDimensions=function(t,e,a,i,n){return E(this),this._offCenterFrustum.getPixelDimensions(t,e,a,i,n)},V.prototype.clone=function(t){return(t=x.defined(t)?t:new V).aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},V.prototype.equals=function(t){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),this.fov===t.fov)&&this.aspectRatio===t.aspectRatio&&this._offCenterFrustum.equals(t._offCenterFrustum)},V.prototype.equalsEpsilon=function(t,e,a){return!!(x.defined(t)&&t instanceof V)&&(E(this),E(t),v.CesiumMath.equalsEpsilon(this.fov,t.fov,e,a))&&v.CesiumMath.equalsEpsilon(this.aspectRatio,t.aspectRatio,e,a)&&this._offCenterFrustum.equalsEpsilon(t._offCenterFrustum,e,a)};function O(t){var e,a,i=t.frustum,n=t.orientation,r=t.origin,o=x.defaultValue(t.vertexFormat,u.VertexFormat.DEFAULT),t=x.defaultValue(t._drawNearPlane,!0);i instanceof V?(e=0,a=V.packedLength):i instanceof F&&(e=1,a=F.packedLength),this._frustumType=e,this._frustum=i.clone(),this._origin=w.Cartesian3.clone(r),this._orientation=g.Quaternion.clone(n),this._drawNearPlane=t,this._vertexFormat=o,this._workerName="createFrustumGeometry",this.packedLength=2+a+w.Cartesian3.packedLength+g.Quaternion.packedLength+u.VertexFormat.packedLength}O.pack=function(t,e,a){a=x.defaultValue(a,0);var i=t._frustumType,n=t._frustum;return 0===(e[a++]=i)?(V.pack(n,e,a),a+=V.packedLength):(F.pack(n,e,a),a+=F.packedLength),w.Cartesian3.pack(t._origin,e,a),a+=w.Cartesian3.packedLength,g.Quaternion.pack(t._orientation,e,a),a+=g.Quaternion.packedLength,u.VertexFormat.pack(t._vertexFormat,e,a),e[a+=u.VertexFormat.packedLength]=t._drawNearPlane?1:0,e};var N=new V,G=new F,j=new g.Quaternion,U=new w.Cartesian3,Q=new u.VertexFormat;function P(t,e,a,i,n,r,o,s){for(var f=t/3*2,u=0;u<4;++u)x.defined(e)&&(e[t]=r.x,e[t+1]=r.y,e[t+2]=r.z),x.defined(a)&&(a[t]=o.x,a[t+1]=o.y,a[t+2]=o.z),x.defined(i)&&(i[t]=s.x,i[t+1]=s.y,i[t+2]=s.z),t+=3;n[f]=0,n[1+f]=0,n[2+f]=1,n[3+f]=0,n[4+f]=1,n[5+f]=1,n[6+f]=0,n[7+f]=1}O.unpack=function(t,e,a){e=x.defaultValue(e,0);var i,n=t[e++],r=(0===n?(i=V.unpack(t,e,N),e+=V.packedLength):(i=F.unpack(t,e,G),e+=F.packedLength),w.Cartesian3.unpack(t,e,U)),o=(e+=w.Cartesian3.packedLength,g.Quaternion.unpack(t,e,j)),s=(e+=g.Quaternion.packedLength,u.VertexFormat.unpack(t,e,Q)),t=1===t[e+=u.VertexFormat.packedLength];return x.defined(a)?(e=n===a._frustumType?a._frustum:void 0,a._frustum=i.clone(e),a._frustumType=n,a._origin=w.Cartesian3.clone(r,a._origin),a._orientation=g.Quaternion.clone(o,a._orientation),a._vertexFormat=u.VertexFormat.clone(s,a._vertexFormat),a._drawNearPlane=t,a):new O({frustum:i,origin:r,orientation:o,vertexFormat:s,_drawNearPlane:t})};for(var K=new w.Matrix3,Y=new w.Matrix4,z=new w.Matrix4,R=new w.Cartesian3,S=new w.Cartesian3,T=new w.Cartesian3,J=new w.Cartesian3,W=new w.Cartesian3,X=new w.Cartesian3,k=new Array(3),A=new Array(4),D=(A[0]=new w.Cartesian4(-1,-1,1,1),A[1]=new w.Cartesian4(1,-1,1,1),A[2]=new w.Cartesian4(1,1,1,1),A[3]=new w.Cartesian4(-1,1,1,1),new Array(4)),e=0;e<4;++e)D[e]=new w.Cartesian4;O._computeNearFarPlanes=function(t,e,a,i,n,r,o,s){var f,u,e=w.Matrix3.fromQuaternion(e,K),r=x.defaultValue(r,R),o=x.defaultValue(o,S),l=x.defaultValue(s,T),r=w.Matrix3.getColumn(e,0,r),o=w.Matrix3.getColumn(e,1,o),l=w.Matrix3.getColumn(e,2,l),s=(w.Cartesian3.normalize(r,r),w.Cartesian3.normalize(o,o),w.Cartesian3.normalize(l,l),w.Cartesian3.negate(r,r),w.Matrix4.computeView(t,l,o,r,Y));0===a?(e=i.projectionMatrix,o=w.Matrix4.multiply(e,s,z),u=w.Matrix4.inverse(o,z)):f=w.Matrix4.inverseTransformation(s,z),x.defined(u)?(k[0]=i.near,k[1]=i.far):(k[0]=0,k[1]=i.near,k[2]=i.far);for(var h=0;h<2;++h)for(var p=0;p<4;++p){var d,c,m=w.Cartesian4.clone(A[p],D[p]);x.defined(u)?(d=1/(m=w.Matrix4.multiplyByVector(u,m,m)).w,w.Cartesian3.multiplyByScalar(m,d,m),w.Cartesian3.subtract(m,t,m),w.Cartesian3.normalize(m,m),d=w.Cartesian3.dot(l,m),w.Cartesian3.multiplyByScalar(m,k[h]/d,m),w.Cartesian3.add(m,t,m)):(x.defined(i._offCenterFrustum)&&(i=i._offCenterFrustum),d=k[h],c=k[h+1],m.x=.5*(m.x*(i.right-i.left)+i.left+i.right),m.y=.5*(m.y*(i.top-i.bottom)+i.bottom+i.top),m.z=.5*(m.z*(d-c)-d-c),m.w=1,w.Matrix4.multiplyByVector(f,m,m)),n[12*h+3*p]=m.x,n[12*h+3*p+1]=m.y,n[12*h+3*p+2]=m.z}},O.createGeometry=function(t){for(var e,a,i,n,r,o,s,f=t._frustumType,u=t._frustum,l=t._origin,h=t._orientation,p=t._drawNearPlane,t=t._vertexFormat,d=p?6:5,c=new Float64Array(72),l=(O._computeNearFarPlanes(l,h,f,u,c),24),h=(c[l]=c[12],c[l+1]=c[13],c[l+2]=c[14],c[l+3]=c[0],c[l+4]=c[1],c[l+5]=c[2],c[l+6]=c[9],c[l+7]=c[10],c[l+8]=c[11],c[l+9]=c[21],c[l+10]=c[22],c[l+11]=c[23],c[l+=12]=c[15],c[l+1]=c[16],c[l+2]=c[17],c[l+3]=c[3],c[l+4]=c[4],c[l+5]=c[5],c[l+6]=c[0],c[l+7]=c[1],c[l+8]=c[2],c[l+9]=c[12],c[l+10]=c[13],c[l+11]=c[14],c[l+=12]=c[3],c[l+1]=c[4],c[l+2]=c[5],c[l+3]=c[15],c[l+4]=c[16],c[l+5]=c[17],c[l+6]=c[18],c[l+7]=c[19],c[l+8]=c[20],c[l+9]=c[6],c[l+10]=c[7],c[l+11]=c[8],c[l+=12]=c[6],c[l+1]=c[7],c[l+2]=c[8],c[l+3]=c[18],c[l+4]=c[19],c[l+5]=c[20],c[l+6]=c[21],c[l+7]=c[22],c[l+8]=c[23],c[l+9]=c[9],c[l+10]=c[10],c[l+11]=c[11],p||(c=c.subarray(12)),new M.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c})})),m=((x.defined(t.normal)||x.defined(t.tangent)||x.defined(t.bitangent)||x.defined(t.st))&&(f=x.defined(t.normal)?new Float32Array(12*d):void 0,u=x.defined(t.tangent)?new Float32Array(12*d):void 0,e=x.defined(t.bitangent)?new Float32Array(12*d):void 0,t=x.defined(t.st)?new Float32Array(8*d):void 0,i=S,n=T,r=w.Cartesian3.negate(a=R,J),o=w.Cartesian3.negate(i,W),s=w.Cartesian3.negate(n,X),l=0,p&&(P(l,f,u,e,t,s,a,i),l+=12),P(l,f,u,e,t,n,r,i),P(l+=12,f,u,e,t,r,s,i),P(l+=12,f,u,e,t,o,s,r),P(l+=12,f,u,e,t,a,n,i),P(l+=12,f,u,e,t,i,n,r),x.defined(f)&&(h.normal=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),x.defined(u)&&(h.tangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:u})),x.defined(e)&&(h.bitangent=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})),x.defined(t))&&(h.st=new b.GeometryAttribute({componentDatatype:v.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})),new Uint16Array(6*d)),C=0;C<d;++C){var _=6*C,y=4*C;m[_]=y,m[1+_]=1+y,m[2+_]=2+y,m[3+_]=y,m[4+_]=2+y,m[5+_]=3+y}return new b.Geometry({attributes:h,indices:m,primitiveType:b.PrimitiveType.TRIANGLES,boundingSphere:g.BoundingSphere.fromVertices(c)})},t.FrustumGeometry=O,t.OrthographicFrustum=F,t.PerspectiveFrustum=V});
@@ -1 +0,0 @@
1
- define(["./createTaskProcessorWorker","./when-ae2e0b60"],function(r,e){"use strict";return r(function(r){var t=r.arrayBuffer,f=r.dims,o=new Array(f[0]);for(let a=0;a<f[0];a++){o[a]=new Array(f[1]);for(let n=0;n<f[1];n++){o[a][n]=new Array(f[2]);for(let e=0;e<f[2];e++){o[a][n][e]=new Array(f[3]);for(let r=0;r<f[3];r++){var s=a*(f[1]*f[2]*f[3])+n*(f[2]*f[3])+e*f[3]+r;o[a][n][e][r]=t[s]}}}}return o})});