@mapgis/cesium 17.2.3 → 17.2.6

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 (703) 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 +33 -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 +18 -18
  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 +12 -12
  99. package/Documentation/CutFillAnalysis.html +17 -17
  100. package/Documentation/CuttingTool.html +152 -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 +3 -3
  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 +5 -5
  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 +29 -29
  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 +250 -124
  260. package/Documentation/MapGISM3DTileContent.html +3 -3
  261. package/Documentation/MapGISMapServerImageryProvider.html +4 -4
  262. package/Documentation/MapGISTerrainProvider.html +22 -22
  263. package/Documentation/MapGISTileAvailability.html +6 -6
  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 +16 -16
  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 +34 -34
  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 +22 -22
  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 +115 -115
  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 +34 -34
  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 +34 -34
  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 +13 -13
  474. package/Documentation/VisiblityAnalysis.html +13 -13
  475. package/Documentation/VisualAnalysisManager.html +9 -9
  476. package/Documentation/Visualizer.html +4 -4
  477. package/Documentation/VoxelCell.html +566 -0
  478. package/Documentation/VoxelPrimitive.html +9 -9
  479. package/Documentation/WallGeometry.html +6 -6
  480. package/Documentation/WallGeometryUpdater.html +3 -3
  481. package/Documentation/WallGraphics.html +17 -17
  482. package/Documentation/WallOutlineGeometry.html +6 -6
  483. package/Documentation/WaterReflection.html +9 -9
  484. package/Documentation/WeatherEffect.html +8 -8
  485. package/Documentation/WebMapServiceImageryProvider.html +36 -36
  486. package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
  487. package/Documentation/WebMercatorProjection.html +8 -8
  488. package/Documentation/WebMercatorTilingScheme.html +10 -10
  489. package/Documentation/WeightSpline.html +7 -7
  490. package/Documentation/WfsProvider.html +9 -9
  491. package/Documentation/Wind3D.html +13 -13
  492. package/Documentation/WindowLightEffect.html +4 -4
  493. package/Documentation/ZoomNavigationControl.html +5 -5
  494. package/Documentation/global.html +140 -140
  495. package/Documentation/global.html#ArcType +4 -4
  496. package/Documentation/global.html#Axis +11 -11
  497. package/Documentation/global.html#BaiduProject +19 -19
  498. package/Documentation/global.html#BingMapsStyle +11 -11
  499. package/Documentation/global.html#BlendEquation +6 -6
  500. package/Documentation/global.html#BlendFunction +16 -16
  501. package/Documentation/global.html#BlendOption +4 -4
  502. package/Documentation/global.html#CameraEventType +6 -6
  503. package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
  504. package/Documentation/global.html#ClassificationType +4 -4
  505. package/Documentation/global.html#ClippingGeometryType +8 -8
  506. package/Documentation/global.html#ClockRange +4 -4
  507. package/Documentation/global.html#ClockStep +4 -4
  508. package/Documentation/global.html#ColorBlendMode +4 -4
  509. package/Documentation/global.html#ComponentDatatype +15 -15
  510. package/Documentation/global.html#CoordnateTransform +6 -6
  511. package/Documentation/global.html#CornerType +4 -4
  512. package/Documentation/global.html#CullFace +4 -4
  513. package/Documentation/global.html#DepthFunction +9 -9
  514. package/Documentation/global.html#ExtrapolationType +4 -4
  515. package/Documentation/global.html#GeocodeType +3 -3
  516. package/Documentation/global.html#HeightReference +4 -4
  517. package/Documentation/global.html#HeightmapEncoding +3 -3
  518. package/Documentation/global.html#HorizontalOrigin +4 -4
  519. package/Documentation/global.html#ImagerySplitDirection +4 -4
  520. package/Documentation/global.html#IndexDatatype +9 -9
  521. package/Documentation/global.html#InterceptorsUtil +1 -1
  522. package/Documentation/global.html#Intersect +4 -4
  523. package/Documentation/global.html#IonWorldImageryStyle +4 -4
  524. package/Documentation/global.html#KeyboardEventModifier +4 -4
  525. package/Documentation/global.html#LabelStyle +4 -4
  526. package/Documentation/global.html#LightingMode +3 -3
  527. package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
  528. package/Documentation/global.html#MapMode2D +3 -3
  529. package/Documentation/global.html#ModelAnimationLoop +4 -4
  530. package/Documentation/global.html#ModelExplosionType +5 -5
  531. package/Documentation/global.html#OutlineRenderMode +4 -4
  532. package/Documentation/global.html#Pass +17 -17
  533. package/Documentation/global.html#PixelDatatype +10 -10
  534. package/Documentation/global.html#PixelFormat +21 -21
  535. package/Documentation/global.html#PointLight +1 -1
  536. package/Documentation/global.html#PostProcessStageSampleMode +3 -3
  537. package/Documentation/global.html#PrimitiveType +8 -8
  538. package/Documentation/global.html#ReferenceFrame +3 -3
  539. package/Documentation/global.html#RequestState +7 -7
  540. package/Documentation/global.html#RequestType +5 -5
  541. package/Documentation/global.html#SceneMode +6 -6
  542. package/Documentation/global.html#ScreenSpaceEventType +16 -16
  543. package/Documentation/global.html#SectionRender +1 -1
  544. package/Documentation/global.html#ShadowMode +5 -5
  545. package/Documentation/global.html#ShadowRateDrawCommand +3 -3
  546. package/Documentation/global.html#SpotLight +1 -1
  547. package/Documentation/global.html#Spyglass +1 -1
  548. package/Documentation/global.html#StencilFunction +9 -9
  549. package/Documentation/global.html#StencilOperation +9 -9
  550. package/Documentation/global.html#StripeOrientation +3 -3
  551. package/Documentation/global.html#SwipeModeType +7 -7
  552. package/Documentation/global.html#SwiperController +1 -1
  553. package/Documentation/global.html#TextureMagnificationFilter +3 -3
  554. package/Documentation/global.html#TextureMinificationFilter +7 -7
  555. package/Documentation/global.html#TimeStandard +3 -3
  556. package/Documentation/global.html#TopoJSONUtil +1 -1
  557. package/Documentation/global.html#UrlUtil +1 -1
  558. package/Documentation/global.html#VerticalOrigin +5 -5
  559. package/Documentation/global.html#Visibility +4 -4
  560. package/Documentation/global.html#WebGLConstants +583 -583
  561. package/Documentation/global.html#WindingOrder +3 -3
  562. package/Documentation/global.html#XmlUtil +2 -2
  563. package/Documentation/global.html#angle +1 -1
  564. package/Documentation/global.html#barycentricCoordinates +1 -1
  565. package/Documentation/global.html#binarySearch +1 -1
  566. package/Documentation/global.html#binarySearchComparator +1 -1
  567. package/Documentation/global.html#buildModuleUrl +3 -3
  568. package/Documentation/global.html#cancelAnimationFrame +1 -1
  569. package/Documentation/global.html#clippingFillImage +1 -1
  570. package/Documentation/global.html#clone +1 -1
  571. package/Documentation/global.html#color +3 -3
  572. package/Documentation/global.html#combine +1 -1
  573. package/Documentation/global.html#combineColorStops +150 -0
  574. package/Documentation/global.html#contentReadyCb +150 -0
  575. package/Documentation/global.html#createCommand +1 -1
  576. package/Documentation/global.html#createElevationBandMaterial +1 -1
  577. package/Documentation/global.html#createElevationBandMaterialBand +1 -1
  578. package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
  579. package/Documentation/global.html#createGuid +1 -1
  580. package/Documentation/global.html#createLinearGradientCanvas +150 -0
  581. package/Documentation/global.html#createOsmBuildings +1 -1
  582. package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
  583. package/Documentation/global.html#createValues +150 -0
  584. package/Documentation/global.html#createVoxelContent +150 -0
  585. package/Documentation/global.html#createWorldImagery +1 -1
  586. package/Documentation/global.html#createWorldTerrain +1 -1
  587. package/Documentation/global.html#decay +2 -2
  588. package/Documentation/global.html#defaultValue +2 -2
  589. package/Documentation/global.html#defined +1 -1
  590. package/Documentation/global.html#destroyObject +1 -1
  591. package/Documentation/global.html#direction +2 -2
  592. package/Documentation/global.html#distance +2 -2
  593. package/Documentation/global.html#enableExplosion +1 -1
  594. package/Documentation/global.html#exportKml +1 -1
  595. package/Documentation/global.html#exportKmlModelCallback +1 -1
  596. package/Documentation/global.html#exportKmlResultKml +1 -1
  597. package/Documentation/global.html#exportKmlResultKmz +1 -1
  598. package/Documentation/global.html#formatError +1 -1
  599. package/Documentation/global.html#getAbsoluteUri +1 -1
  600. package/Documentation/global.html#getBaseUri +1 -1
  601. package/Documentation/global.html#getExtensionFromUri +1 -1
  602. package/Documentation/global.html#getFilenameFromUri +1 -1
  603. package/Documentation/global.html#getImagePixels +1 -1
  604. package/Documentation/global.html#getTimestamp +1 -1
  605. package/Documentation/global.html#getViewModel +1 -1
  606. package/Documentation/global.html#getVoxelAttUrl +274 -0
  607. package/Documentation/global.html#hasText +1 -1
  608. package/Documentation/global.html#id +3 -3
  609. package/Documentation/global.html#intensity +3 -3
  610. package/Documentation/global.html#isLeapYear +1 -1
  611. package/Documentation/global.html#mergeSort +1 -1
  612. package/Documentation/global.html#mergeSortComparator +1 -1
  613. package/Documentation/global.html#objectToQuery +1 -1
  614. package/Documentation/global.html#parseVoxelStyles +150 -0
  615. package/Documentation/global.html#penumbra +1 -1
  616. package/Documentation/global.html#pointInsideTriangle +1 -1
  617. package/Documentation/global.html#position +2 -2
  618. package/Documentation/global.html#queryToObject +1 -1
  619. package/Documentation/global.html#requestAnimationFrame +1 -1
  620. package/Documentation/global.html#requestAnimationFrameCallback +1 -1
  621. package/Documentation/global.html#sampleTerrain +1 -1
  622. package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
  623. package/Documentation/global.html#show +1 -1
  624. package/Documentation/global.html#startTime +1 -1
  625. package/Documentation/global.html#subdivideArray +1 -1
  626. package/Documentation/global.html#terrainProvider +1 -1
  627. package/Documentation/global.html#typeArrays +162 -0
  628. package/Documentation/global.html#updateTime +150 -0
  629. package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
  630. package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
  631. package/Documentation/global.html#viewerDragDropMixin +8 -8
  632. package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
  633. package/Documentation/global.html#writeTextToCanvas +1 -1
  634. package/Documentation/types.txt +1 -1
  635. package/README.md +26 -0
  636. package/dist/Cesium.js +19 -31
  637. package/dist/Workers/AxisAlignedBoundingBox-9c01642b.js +1 -0
  638. package/dist/Workers/BoundingRectangle-5a740234.js +1 -0
  639. package/dist/Workers/BoxGeometry-3318157c.js +1 -0
  640. package/dist/Workers/Color-7daaba04.js +1 -0
  641. package/dist/Workers/CoplanarPolygonGeometryLibrary-97ba18e3.js +1 -0
  642. package/dist/Workers/CorridorGeometryLibrary-bdd6155c.js +1 -0
  643. package/dist/Workers/CylinderGeometry-7205275f.js +1 -0
  644. package/dist/Workers/EllipseGeometry-6a90035b.js +1 -0
  645. package/dist/Workers/EllipseGeometryLibrary-c242429c.js +1 -0
  646. package/dist/Workers/EllipseOutlineGeometry-bc6638f3.js +1 -0
  647. package/dist/Workers/EllipsoidGeometry-f9bf5c2c.js +1 -0
  648. package/dist/Workers/EllipsoidOutlineGeometry-05541945.js +1 -0
  649. package/dist/Workers/EllipsoidTangentPlane-4a503a7a.js +1 -0
  650. package/dist/Workers/FrustumGeometry-30e754b7.js +1 -0
  651. package/dist/Workers/GeometryAttribute-3dd6da35.js +1 -0
  652. package/dist/Workers/GeometryPipeline-990a755f.js +1 -0
  653. package/dist/Workers/IntersectionTests-60f10d18.js +1 -0
  654. package/dist/Workers/OrientedBoundingBox-f3e4df94.js +1 -0
  655. package/dist/Workers/PolygonGeometryLibrary-4ad4f4a2.js +1 -0
  656. package/dist/Workers/PolygonPipeline-832a906c.js +1 -0
  657. package/dist/Workers/PolylinePipeline-83139cb3.js +1 -0
  658. package/dist/Workers/PolylineVolumeGeometryLibrary-897b738e.js +1 -0
  659. package/dist/Workers/PrimitivePipeline-7f47a42a.js +1 -0
  660. package/dist/Workers/RectangleGeometryLibrary-3de7d882.js +1 -0
  661. package/dist/Workers/TerrainEncoding-11b6c30f.js +1 -0
  662. package/dist/Workers/Transforms-c1a1d063.js +1 -0
  663. package/dist/Workers/WallGeometryLibrary-7d64d7fc.js +1 -0
  664. package/dist/Workers/combineGeometry.js +1 -1
  665. package/dist/Workers/createBoxGeometry.js +1 -1
  666. package/dist/Workers/createBoxOutlineGeometry.js +1 -1
  667. package/dist/Workers/createCircleGeometry.js +1 -1
  668. package/dist/Workers/createCircleOutlineGeometry.js +1 -1
  669. package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
  670. package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  671. package/dist/Workers/createCorridorGeometry.js +1 -1
  672. package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
  673. package/dist/Workers/createCylinderGeometry.js +1 -1
  674. package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
  675. package/dist/Workers/createEllipseGeometry.js +1 -1
  676. package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
  677. package/dist/Workers/createEllipsoidGeometry.js +1 -1
  678. package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
  679. package/dist/Workers/createFrustumGeometry.js +1 -1
  680. package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
  681. package/dist/Workers/createGeometry.js +1 -1
  682. package/dist/Workers/createGroundPolylineGeometry.js +1 -1
  683. package/dist/Workers/createPlaneGeometry.js +1 -1
  684. package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
  685. package/dist/Workers/createPolygonGeometry.js +1 -1
  686. package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
  687. package/dist/Workers/createPolylineGeometry.js +1 -1
  688. package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
  689. package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  690. package/dist/Workers/createRectangleGeometry.js +1 -1
  691. package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
  692. package/dist/Workers/createSimplePolylineGeometry.js +1 -1
  693. package/dist/Workers/createSphereGeometry.js +1 -1
  694. package/dist/Workers/createSphereOutlineGeometry.js +1 -1
  695. package/dist/Workers/createVectorTileGeometries.js +1 -1
  696. package/dist/Workers/createVectorTilePolygons.js +1 -1
  697. package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  698. package/dist/Workers/createVerticesFromHeightmap.js +1 -1
  699. package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  700. package/dist/Workers/createWallGeometry.js +1 -1
  701. package/dist/Workers/createWallOutlineGeometry.js +1 -1
  702. package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  703. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./Transforms-c1a1d063"],function(e,C,n,h,t){function y(e,n,i){this.minimum=C.Cartesian3.clone(h.defaultValue(e,C.Cartesian3.ZERO)),this.maximum=C.Cartesian3.clone(h.defaultValue(n,C.Cartesian3.ZERO)),i=h.defined(i)?C.Cartesian3.clone(i):C.Cartesian3.midpoint(this.minimum,this.maximum,new C.Cartesian3),this.center=i}y.fromPoints=function(e,n){if(h.defined(n)||(n=new y),h.defined(e)&&0!==e.length){for(var i=e[0].x,a=e[0].y,t=e[0].z,m=e[0].x,r=e[0].y,s=e[0].z,u=e.length,c=1;c<u;c++)var o=e[c],l=o.x,f=o.y,o=o.z,i=Math.min(l,i),m=Math.max(l,m),a=Math.min(f,a),r=Math.max(f,r),t=Math.min(o,t),s=Math.max(o,s);var x=n.minimum,d=(x.x=i,x.y=a,x.z=t,n.maximum);d.x=m,d.y=r,d.z=s,n.center=C.Cartesian3.midpoint(x,d,n.center)}else n.minimum=C.Cartesian3.clone(C.Cartesian3.ZERO,n.minimum),n.maximum=C.Cartesian3.clone(C.Cartesian3.ZERO,n.maximum),n.center=C.Cartesian3.clone(C.Cartesian3.ZERO,n.center);return n},y.clone=function(e,n){if(h.defined(e))return h.defined(n)?(n.minimum=C.Cartesian3.clone(e.minimum,n.minimum),n.maximum=C.Cartesian3.clone(e.maximum,n.maximum),n.center=C.Cartesian3.clone(e.center,n.center),n):new y(e.minimum,e.maximum,e.center)},y.equals=function(e,n){return e===n||h.defined(e)&&h.defined(n)&&C.Cartesian3.equals(e.center,n.center)&&C.Cartesian3.equals(e.minimum,n.minimum)&&C.Cartesian3.equals(e.maximum,n.maximum)};var m=new C.Cartesian3;y.intersectPlane=function(e,n){m=C.Cartesian3.subtract(e.maximum,e.minimum,m);var i=C.Cartesian3.multiplyByScalar(m,.5,m),a=n.normal,i=i.x*Math.abs(a.x)+i.y*Math.abs(a.y)+i.z*Math.abs(a.z),e=C.Cartesian3.dot(e.center,a)+n.distance;return 0<e-i?t.Intersect.INSIDE:e+i<0?t.Intersect.OUTSIDE:t.Intersect.INTERSECTING},y.prototype.clone=function(e){return y.clone(this,e)},y.prototype.intersectPlane=function(e){return y.intersectPlane(this,e)},y.prototype.equals=function(e){return y.equals(this,e)},e.AxisAlignedBoundingBox=y});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./Transforms-c1a1d063"],function(t,h,e,f,a){function c(t,e,n,i){this.x=f.defaultValue(t,0),this.y=f.defaultValue(e,0),this.width=f.defaultValue(n,0),this.height=f.defaultValue(i,0)}c.packedLength=4,c.pack=function(t,e,n){return n=f.defaultValue(n,0),e[n++]=t.x,e[n++]=t.y,e[n++]=t.width,e[n]=t.height,e},c.unpack=function(t,e,n){return e=f.defaultValue(e,0),(n=f.defined(n)?n:new c).x=t[e++],n.y=t[e++],n.width=t[e++],n.height=t[e],n},c.fromPoints=function(t,e){if(f.defined(e)||(e=new c),f.defined(t)&&0!==t.length){for(var n=t.length,i=t[0].x,h=t[0].y,r=t[0].x,a=t[0].y,d=1;d<n;d++)var u=t[d],o=u.x,u=u.y,i=Math.min(o,i),r=Math.max(o,r),h=Math.min(u,h),a=Math.max(u,a);e.x=i,e.y=h,e.width=r-i,e.height=a-h}else e.x=0,e.y=0,e.width=0,e.height=0;return e};var r=new a.GeographicProjection,d=new h.Cartographic,u=new h.Cartographic;c.fromRectangle=function(t,e,n){var i;return f.defined(n)||(n=new c),f.defined(t)?(i=(e=f.defaultValue(e,r)).project(h.Rectangle.southwest(t,d)),e=e.project(h.Rectangle.northeast(t,u)),h.Cartesian2.subtract(e,i,e),n.x=i.x,n.y=i.y,n.width=e.x,n.height=e.y):(n.x=0,n.y=0,n.width=0,n.height=0),n},c.clone=function(t,e){if(f.defined(t))return f.defined(e)?(e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e):new c(t.x,t.y,t.width,t.height)},c.union=function(t,e,n){f.defined(n)||(n=new c);var i=Math.min(t.x,e.x),h=Math.min(t.y,e.y),r=Math.max(t.x+t.width,e.x+e.width),t=Math.max(t.y+t.height,e.y+e.height);return n.x=i,n.y=h,n.width=r-i,n.height=t-h,n},c.expand=function(t,e,n){n=c.clone(t,n);var t=e.x-n.x,i=e.y-n.y;return n.width<t?n.width=t:t<0&&(n.width-=t,n.x=e.x),n.height<i?n.height=i:i<0&&(n.height-=i,n.y=e.y),n},c.intersect=function(t,e){var n=t.x,i=t.y,h=e.x,r=e.y;return h+e.width<n||n+t.width<h||i+t.height<r||r+e.height<i?a.Intersect.OUTSIDE:a.Intersect.INTERSECTING},c.equals=function(t,e){return t===e||f.defined(t)&&f.defined(e)&&t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},c.prototype.clone=function(t){return c.clone(this,t)},c.prototype.intersect=function(t){return c.intersect(this,t)},c.prototype.equals=function(t){return c.equals(this,t)},t.BoundingRectangle=c});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./VertexFormat-1fc9746e"],function(e,m,u,s,t,y,p,x,c,o){var f=new s.Cartesian3;function A(e){var t=(e=p.defaultValue(e,p.defaultValue.EMPTY_OBJECT)).minimum,a=e.maximum,n=p.defaultValue(e.vertexFormat,o.VertexFormat.DEFAULT);this._minimum=s.Cartesian3.clone(t),this._maximum=s.Cartesian3.clone(a),this._vertexFormat=n,this._offsetAttribute=e.offsetAttribute,this._workerName="createBoxGeometry"}A.fromDimensions=function(e){var t=(e=p.defaultValue(e,p.defaultValue.EMPTY_OBJECT)).dimensions,t=s.Cartesian3.multiplyByScalar(t,.5,new s.Cartesian3);return new A({minimum:s.Cartesian3.negate(t,new s.Cartesian3),maximum:t,vertexFormat:e.vertexFormat,offsetAttribute:e.offsetAttribute})},A.fromAxisAlignedBoundingBox=function(e){return new A({minimum:e.minimum,maximum:e.maximum})},A.packedLength=2*s.Cartesian3.packedLength+o.VertexFormat.packedLength+1,A.pack=function(e,t,a){return a=p.defaultValue(a,0),s.Cartesian3.pack(e._minimum,t,a),s.Cartesian3.pack(e._maximum,t,a+s.Cartesian3.packedLength),o.VertexFormat.pack(e._vertexFormat,t,a+2*s.Cartesian3.packedLength),t[a+2*s.Cartesian3.packedLength+o.VertexFormat.packedLength]=p.defaultValue(e._offsetAttribute,-1),t};var a,l=new s.Cartesian3,d=new s.Cartesian3,b=new o.VertexFormat,C={minimum:l,maximum:d,vertexFormat:b,offsetAttribute:void 0};A.unpack=function(e,t,a){t=p.defaultValue(t,0);var n=s.Cartesian3.unpack(e,t,l),r=s.Cartesian3.unpack(e,t+s.Cartesian3.packedLength,d),i=o.VertexFormat.unpack(e,t+2*s.Cartesian3.packedLength,b),e=e[t+2*s.Cartesian3.packedLength+o.VertexFormat.packedLength];return p.defined(a)?(a._minimum=s.Cartesian3.clone(n,a._minimum),a._maximum=s.Cartesian3.clone(r,a._maximum),a._vertexFormat=o.VertexFormat.clone(i,a._vertexFormat),a._offsetAttribute=-1===e?void 0:e,a):(C.offsetAttribute=-1===e?void 0:e,new A(C))},A.createGeometry=function(e){var t,a,n,r=e._minimum,i=e._maximum,o=e._vertexFormat;if(!s.Cartesian3.equals(r,i))return t=new c.GeometryAttributes,o.position&&(o.st||o.normal||o.tangent||o.bitangent)?(o.position&&((n=new Float64Array(72))[0]=r.x,n[1]=r.y,n[2]=i.z,n[3]=i.x,n[4]=r.y,n[5]=i.z,n[6]=i.x,n[7]=i.y,n[8]=i.z,n[9]=r.x,n[10]=i.y,n[11]=i.z,n[12]=r.x,n[13]=r.y,n[14]=r.z,n[15]=i.x,n[16]=r.y,n[17]=r.z,n[18]=i.x,n[19]=i.y,n[20]=r.z,n[21]=r.x,n[22]=i.y,n[23]=r.z,n[24]=i.x,n[25]=r.y,n[26]=r.z,n[27]=i.x,n[28]=i.y,n[29]=r.z,n[30]=i.x,n[31]=i.y,n[32]=i.z,n[33]=i.x,n[34]=r.y,n[35]=i.z,n[36]=r.x,n[37]=r.y,n[38]=r.z,n[39]=r.x,n[40]=i.y,n[41]=r.z,n[42]=r.x,n[43]=i.y,n[44]=i.z,n[45]=r.x,n[46]=r.y,n[47]=i.z,n[48]=r.x,n[49]=i.y,n[50]=r.z,n[51]=i.x,n[52]=i.y,n[53]=r.z,n[54]=i.x,n[55]=i.y,n[56]=i.z,n[57]=r.x,n[58]=i.y,n[59]=i.z,n[60]=r.x,n[61]=r.y,n[62]=r.z,n[63]=i.x,n[64]=r.y,n[65]=r.z,n[66]=i.x,n[67]=r.y,n[68]=i.z,n[69]=r.x,n[70]=r.y,n[71]=i.z,t.position=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n})),o.normal&&((a=new Float32Array(72))[0]=0,a[1]=0,a[2]=1,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=1,a[9]=0,a[10]=0,a[11]=1,a[12]=0,a[13]=0,a[14]=-1,a[15]=0,a[16]=0,a[17]=-1,a[18]=0,a[19]=0,a[20]=-1,a[21]=0,a[22]=0,a[23]=-1,a[24]=1,a[25]=0,a[26]=0,a[27]=1,a[28]=0,a[29]=0,a[30]=1,a[31]=0,a[32]=0,a[33]=1,a[34]=0,a[35]=0,a[36]=-1,a[37]=0,a[38]=0,a[39]=-1,a[40]=0,a[41]=0,a[42]=-1,a[43]=0,a[44]=0,a[45]=-1,a[46]=0,a[47]=0,a[48]=0,a[49]=1,a[50]=0,a[51]=0,a[52]=1,a[53]=0,a[54]=0,a[55]=1,a[56]=0,a[57]=0,a[58]=1,a[59]=0,a[60]=0,a[61]=-1,a[62]=0,a[63]=0,a[64]=-1,a[65]=0,a[66]=0,a[67]=-1,a[68]=0,a[69]=0,a[70]=-1,a[71]=0,t.normal=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:a})),o.st&&((a=new Float32Array(48))[0]=0,a[1]=0,a[2]=1,a[3]=0,a[4]=1,a[5]=1,a[6]=0,a[7]=1,a[8]=1,a[9]=0,a[10]=0,a[11]=0,a[12]=0,a[13]=1,a[14]=1,a[15]=1,a[16]=0,a[17]=0,a[18]=1,a[19]=0,a[20]=1,a[21]=1,a[22]=0,a[23]=1,a[24]=1,a[25]=0,a[26]=0,a[27]=0,a[28]=0,a[29]=1,a[30]=1,a[31]=1,a[32]=1,a[33]=0,a[34]=0,a[35]=0,a[36]=0,a[37]=1,a[38]=1,a[39]=1,a[40]=0,a[41]=0,a[42]=1,a[43]=0,a[44]=1,a[45]=1,a[46]=0,a[47]=1,t.st=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:a})),o.tangent&&((a=new Float32Array(72))[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a[6]=1,a[7]=0,a[8]=0,a[9]=1,a[10]=0,a[11]=0,a[12]=-1,a[13]=0,a[14]=0,a[15]=-1,a[16]=0,a[17]=0,a[18]=-1,a[19]=0,a[20]=0,a[21]=-1,a[22]=0,a[23]=0,a[24]=0,a[25]=1,a[26]=0,a[27]=0,a[28]=1,a[29]=0,a[30]=0,a[31]=1,a[32]=0,a[33]=0,a[34]=1,a[35]=0,a[36]=0,a[37]=-1,a[38]=0,a[39]=0,a[40]=-1,a[41]=0,a[42]=0,a[43]=-1,a[44]=0,a[45]=0,a[46]=-1,a[47]=0,a[48]=-1,a[49]=0,a[50]=0,a[51]=-1,a[52]=0,a[53]=0,a[54]=-1,a[55]=0,a[56]=0,a[57]=-1,a[58]=0,a[59]=0,a[60]=1,a[61]=0,a[62]=0,a[63]=1,a[64]=0,a[65]=0,a[66]=1,a[67]=0,a[68]=0,a[69]=1,a[70]=0,a[71]=0,t.tangent=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:a})),o.bitangent&&((a=new Float32Array(72))[0]=0,a[1]=1,a[2]=0,a[3]=0,a[4]=1,a[5]=0,a[6]=0,a[7]=1,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=1,a[14]=0,a[15]=0,a[16]=1,a[17]=0,a[18]=0,a[19]=1,a[20]=0,a[21]=0,a[22]=1,a[23]=0,a[24]=0,a[25]=0,a[26]=1,a[27]=0,a[28]=0,a[29]=1,a[30]=0,a[31]=0,a[32]=1,a[33]=0,a[34]=0,a[35]=1,a[36]=0,a[37]=0,a[38]=1,a[39]=0,a[40]=0,a[41]=1,a[42]=0,a[43]=0,a[44]=1,a[45]=0,a[46]=0,a[47]=1,a[48]=0,a[49]=0,a[50]=1,a[51]=0,a[52]=0,a[53]=1,a[54]=0,a[55]=0,a[56]=1,a[57]=0,a[58]=0,a[59]=1,a[60]=0,a[61]=0,a[62]=1,a[63]=0,a[64]=0,a[65]=1,a[66]=0,a[67]=0,a[68]=1,a[69]=0,a[70]=0,a[71]=1,t.bitangent=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:a})),(a=new Uint16Array(36))[0]=0,a[1]=1,a[2]=2,a[3]=0,a[4]=2,a[5]=3,a[6]=6,a[7]=5,a[8]=4,a[9]=7,a[10]=6,a[11]=4,a[12]=8,a[13]=9,a[14]=10,a[15]=8,a[16]=10,a[17]=11,a[18]=14,a[19]=13,a[20]=12,a[21]=15,a[22]=14,a[23]=12,a[24]=18,a[25]=17,a[26]=16,a[27]=19,a[28]=18,a[29]=16,a[30]=20,a[31]=21,a[32]=22,a[33]=20,a[34]=22,a[35]=23):((n=new Float64Array(24))[0]=r.x,n[1]=r.y,n[2]=r.z,n[3]=i.x,n[4]=r.y,n[5]=r.z,n[6]=i.x,n[7]=i.y,n[8]=r.z,n[9]=r.x,n[10]=i.y,n[11]=r.z,n[12]=r.x,n[13]=r.y,n[14]=i.z,n[15]=i.x,n[16]=r.y,n[17]=i.z,n[18]=i.x,n[19]=i.y,n[20]=i.z,n[21]=r.x,n[22]=i.y,n[23]=i.z,t.position=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),(a=new Uint16Array(36))[0]=4,a[1]=5,a[2]=6,a[3]=4,a[4]=6,a[5]=7,a[6]=1,a[7]=0,a[8]=3,a[9]=1,a[10]=3,a[11]=2,a[12]=1,a[13]=6,a[14]=5,a[15]=1,a[16]=2,a[17]=6,a[18]=2,a[19]=3,a[20]=7,a[21]=2,a[22]=7,a[23]=6,a[24]=3,a[25]=0,a[26]=4,a[27]=3,a[28]=4,a[29]=7,a[30]=0,a[31]=1,a[32]=5,a[33]=0,a[34]=5,a[35]=4),o=s.Cartesian3.subtract(i,r,f),i=.5*s.Cartesian3.magnitude(o),p.defined(e._offsetAttribute)&&(r=n.length,o=new Uint8Array(r/3),n=e._offsetAttribute===m.GeometryOffsetAttribute.NONE?0:1,m.arrayFill(o,n),t.applyOffset=new x.GeometryAttribute({componentDatatype:y.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:o})),new x.Geometry({attributes:t,indices:a,primitiveType:x.PrimitiveType.TRIANGLES,boundingSphere:new u.BoundingSphere(s.Cartesian3.ZERO,i),offsetAttribute:e._offsetAttribute})},A.getUnitBox=function(){return a=p.defined(a)?a:A.createGeometry(A.fromDimensions({dimensions:new s.Cartesian3(1,1,1),vertexFormat:o.VertexFormat.POSITION_ONLY}))},e.BoxGeometry=A});
@@ -0,0 +1 @@
1
+ define(["exports","./RuntimeError-24b14c10","./when-ae2e0b60","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18"],function(e,r,g,t,l){function f(e,r,t){return t<e?t=e:r<t&&(t=r),t}function o(e,r,t){var o,s;return"number"==typeof t?f(e,r,t):"string"==typeof t&&(o=new RegExp("^[0-9]+$"),s=new RegExp("^[0-9]+\\.?[0-9]+?$"),o.test(t)||s.test(t))?f(e,r,Number(t)):r}function C(e){return o(0,1,e)}function n(e){return o(0,255,e)}function a(e,r,t){return t<0&&(t+=1),1<t&&--t,6*t<1?e+6*(r-e)*t:2*t<1?r:3*t<2?e+(r-e)*(2/3-t)*6:e}function b(e,r,t,o){this.red=C(g.defaultValue(e,1)),this.green=C(g.defaultValue(r,1)),this.blue=C(g.defaultValue(t,1)),this.alpha=C(g.defaultValue(o,1))}b.fromCartesian4=function(e,r){return g.defined(r)?(r.red=C(e.x),r.green=C(e.y),r.blue=C(e.z),r.alpha=C(e.w),r):new b(e.x,e.y,e.z,e.w)},b.fromBytes=function(e,r,t,o,s){return e=b.byteToFloat(n(g.defaultValue(e,255))),r=b.byteToFloat(n(g.defaultValue(r,255))),t=b.byteToFloat(n(g.defaultValue(t,255))),o=b.byteToFloat(n(g.defaultValue(o,255))),g.defined(s)?(s.red=e,s.green=r,s.blue=t,s.alpha=o,s):new b(e,r,t,o)},b.fromAlpha=function(e,r,t){return g.defined(t)?(t.red=C(e.red),t.green=C(e.green),t.blue=C(e.blue),t.alpha=C(r),t):new b(e.red,e.green,e.blue,r)},t.FeatureDetection.supportsTypedArrays()&&(t=new ArrayBuffer(4),s=new Uint32Array(t),i=new Uint8Array(t)),b.fromRgba=function(e,r){return s[0]=e,b.fromBytes(i[0],i[1],i[2],i[3],r)},b.fromHsl=function(e,r,t,o,s){e=C(g.defaultValue(e,0)%1),r=C(g.defaultValue(r,0)),t=C(g.defaultValue(t,0)),o=C(g.defaultValue(o,1));var f=t,n=t,l=t;return 0!==r&&(f=a(r=2*t-(t=t<.5?t*(1+r):t+r-t*r),t,e+1/3),n=a(r,t,e),l=a(r,t,e-1/3)),g.defined(s)?(s.red=f,s.green=n,s.blue=l,s.alpha=o,s):new b(f,n,l,o)},b.fromRandom=function(e,r){var t,o=(e=g.defaultValue(e,g.defaultValue.EMPTY_OBJECT)).red,s=(g.defined(o)||(t=g.defaultValue(e.minimumRed,0),s=g.defaultValue(e.maximumRed,1),o=t+l.CesiumMath.nextRandomNumber()*(s-t)),e.green),f=(g.defined(s)||(t=g.defaultValue(e.minimumGreen,0),f=g.defaultValue(e.maximumGreen,1),s=t+l.CesiumMath.nextRandomNumber()*(f-t)),e.blue),n=(g.defined(f)||(t=g.defaultValue(e.minimumBlue,0),n=g.defaultValue(e.maximumBlue,1),f=t+l.CesiumMath.nextRandomNumber()*(n-t)),e.alpha);return g.defined(n)||(t=g.defaultValue(e.minimumAlpha,0),e=g.defaultValue(e.maximumAlpha,1),n=t+l.CesiumMath.nextRandomNumber()*(e-t)),g.defined(r)?(r.red=o,r.green=s,r.blue=f,r.alpha=n,r):new b(o,s,f,n)};var s,i,O=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,S=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,F=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,c=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;b.fromCssColorString=function(e,r){if(a=!1,"string"==typeof(i=(t=e).replace(/\s/g,""))?(C=new RegExp("^#[0-9A-Fa-f]{3}$"),E=new RegExp("^#[0-9A-Fa-f]{4}$"),u=new RegExp("^#[0-9A-Fa-f]{6}$"),o=new RegExp("^#[0-9A-Fa-f]{8}$"),s=new RegExp("^[rR][gG][Bb][(]([]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){2}[\\s]*(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)[\\s]*[)]{1}$"),f=new RegExp("^[rR][gG][Bb][Aa][(]([\\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\\s]*,){3}[\\s]*(1|1.0|0|0.[0-9]*)[\\s]*[)]{1}$"),n=new RegExp("^[hH][Ss][Ll][(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*)[)]$"),l=new RegExp("^[hH][Ss][Ll][Aa][(]([\\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\\s]*,)([\\s]*((100|[0-9][0-9]?)%|0)[\\s]*,){2}([\\s]*(1|1.0|0|0.[0-9]*)[\\s]*)[)]$"),(a=C.test(i)||E.test(i)||u.test(i)||o.test(i)||s.test(i)||f.test(i)||n.test(i)||l.test(i))||(C=b[t.toUpperCase()],g.defined(C)&&(a=!0))):a=!1,!a)return r=new b(1,1,1);g.defined(r)||(r=new b);var t,o,s,f,n,l,C,a,i,E=b[(e=e.replace(/\s/g,"")).toUpperCase()];if(g.defined(E))b.clone(E,r);else{var u=O.exec(e);if(null!==u)r.red=parseInt(u[1],16)/15,r.green=parseInt(u[2],16)/15,r.blue=parseInt(u[3],16)/15,r.alpha=parseInt(g.defaultValue(u[4],"f"),16)/15;else if(null!==(u=S.exec(e)))r.red=parseInt(u[1],16)/255,r.green=parseInt(u[2],16)/255,r.blue=parseInt(u[3],16)/255,r.alpha=parseInt(g.defaultValue(u[4],"ff"),16)/255;else if(null!==(u=F.exec(e)))r.red=parseFloat(u[1])/("%"===u[1].substr(-1)?100:255),r.green=parseFloat(u[2])/("%"===u[2].substr(-1)?100:255),r.blue=parseFloat(u[3])/("%"===u[3].substr(-1)?100:255),r.alpha=parseFloat(g.defaultValue(u[4],"1.0"));else{if(null!==(u=c.exec(e)))return b.fromHsl(parseFloat(u[1])/360,parseFloat(u[2])/100,parseFloat(u[3])/100,parseFloat(g.defaultValue(u[4],"1.0")),r);r=void 0}}return r},b.packedLength=4,b.pack=function(e,r,t){return t=g.defaultValue(t,0),r[t++]=e.red,r[t++]=e.green,r[t++]=e.blue,r[t]=e.alpha,r},b.unpack=function(e,r,t){return r=g.defaultValue(r,0),(t=g.defined(t)?t:new b).red=e[r++],t.green=e[r++],t.blue=e[r++],t.alpha=e[r],t},b.byteToFloat=function(e){return e/255},b.floatToByte=function(e){return 1===e?255:256*e|0},b.clone=function(e,r){if(g.defined(e))return g.defined(r)?(r.red=e.red,r.green=e.green,r.blue=e.blue,r.alpha=e.alpha,r):new b(e.red,e.green,e.blue,e.alpha)},b.equals=function(e,r){return e===r||g.defined(e)&&g.defined(r)&&e.red===r.red&&e.green===r.green&&e.blue===r.blue&&e.alpha===r.alpha},b.equalsArray=function(e,r,t){return e.red===r[t]&&e.green===r[t+1]&&e.blue===r[t+2]&&e.alpha===r[t+3]},b.prototype.clone=function(e){return b.clone(this,e)},b.prototype.equals=function(e){return b.equals(this,e)},b.prototype.equalsEpsilon=function(e,r){return this===e||g.defined(e)&&Math.abs(this.red-e.red)<=r&&Math.abs(this.green-e.green)<=r&&Math.abs(this.blue-e.blue)<=r&&Math.abs(this.alpha-e.alpha)<=r},b.prototype.toString=function(){return"("+this.red+", "+this.green+", "+this.blue+", "+this.alpha+")"},b.prototype.toCssColorString=function(){var e=b.floatToByte(this.red),r=b.floatToByte(this.green),t=b.floatToByte(this.blue);return 1===this.alpha?"rgb("+e+","+r+","+t+")":"rgba("+e+","+r+","+t+","+this.alpha+")"},b.prototype.toCssColor=function(){return{red:b.floatToByte(this.red),green:b.floatToByte(this.green),blue:b.floatToByte(this.blue),alpha:this.alpha}},b.prototype.toCssHexString=function(){var e,r=b.floatToByte(this.red).toString(16),t=(r.length<2&&(r="0"+r),b.floatToByte(this.green).toString(16)),o=(t.length<2&&(t="0"+t),b.floatToByte(this.blue).toString(16));return o.length<2&&(o="0"+o),this.alpha<1?"#"+r+t+o+(e=(e=b.floatToByte(this.alpha).toString(16)).length<2?"0"+e:e):"#"+r+t+o},b.prototype.toBytes=function(e){var r=b.floatToByte(this.red),t=b.floatToByte(this.green),o=b.floatToByte(this.blue),s=b.floatToByte(this.alpha);return g.defined(e)?(e[0]=r,e[1]=t,e[2]=o,e[3]=s,e):[r,t,o,s]},b.prototype.toRgba=function(){return i[0]=b.floatToByte(this.red),i[1]=b.floatToByte(this.green),i[2]=b.floatToByte(this.blue),i[3]=b.floatToByte(this.alpha),s[0]},b.prototype.brighten=function(e,r){return r.red=1-(1-this.red)*(e=1-e),r.green=1-(1-this.green)*e,r.blue=1-(1-this.blue)*e,r.alpha=this.alpha,r},b.prototype.darken=function(e,r){return r.red=this.red*(e=1-e),r.green=this.green*e,r.blue=this.blue*e,r.alpha=this.alpha,r},b.prototype.withAlpha=function(e,r){return b.fromAlpha(this,e,r)},b.add=function(e,r,t){return t.red=e.red+r.red,t.green=e.green+r.green,t.blue=e.blue+r.blue,t.alpha=e.alpha+r.alpha,t},b.subtract=function(e,r,t){return t.red=e.red-r.red,t.green=e.green-r.green,t.blue=e.blue-r.blue,t.alpha=e.alpha-r.alpha,t},b.multiply=function(e,r,t){return t.red=e.red*r.red,t.green=e.green*r.green,t.blue=e.blue*r.blue,t.alpha=e.alpha*r.alpha,t},b.divide=function(e,r,t){return t.red=e.red/r.red,t.green=e.green/r.green,t.blue=e.blue/r.blue,t.alpha=e.alpha/r.alpha,t},b.mod=function(e,r,t){return t.red=e.red%r.red,t.green=e.green%r.green,t.blue=e.blue%r.blue,t.alpha=e.alpha%r.alpha,t},b.lerp=function(e,r,t,o){return o.red=l.CesiumMath.lerp(e.red,r.red,t),o.green=l.CesiumMath.lerp(e.green,r.green,t),o.blue=l.CesiumMath.lerp(e.blue,r.blue,t),o.alpha=l.CesiumMath.lerp(e.alpha,r.alpha,t),o},b.multiplyByScalar=function(e,r,t){return t.red=e.red*r,t.green=e.green*r,t.blue=e.blue*r,t.alpha=e.alpha*r,t},b.divideByScalar=function(e,r,t){return t.red=e.red/r,t.green=e.green/r,t.blue=e.blue/r,t.alpha=e.alpha/r,t},b.ALICEBLUE=Object.freeze(b.fromCssColorString("#F0F8FF")),b.ANTIQUEWHITE=Object.freeze(b.fromCssColorString("#FAEBD7")),b.AQUA=Object.freeze(b.fromCssColorString("#00FFFF")),b.AQUAMARINE=Object.freeze(b.fromCssColorString("#7FFFD4")),b.AZURE=Object.freeze(b.fromCssColorString("#F0FFFF")),b.BEIGE=Object.freeze(b.fromCssColorString("#F5F5DC")),b.BISQUE=Object.freeze(b.fromCssColorString("#FFE4C4")),b.BLACK=Object.freeze(b.fromCssColorString("#000000")),b.BLANCHEDALMOND=Object.freeze(b.fromCssColorString("#FFEBCD")),b.BLUE=Object.freeze(b.fromCssColorString("#0000FF")),b.BLUEVIOLET=Object.freeze(b.fromCssColorString("#8A2BE2")),b.BROWN=Object.freeze(b.fromCssColorString("#A52A2A")),b.BURLYWOOD=Object.freeze(b.fromCssColorString("#DEB887")),b.CADETBLUE=Object.freeze(b.fromCssColorString("#5F9EA0")),b.CHARTREUSE=Object.freeze(b.fromCssColorString("#7FFF00")),b.CHOCOLATE=Object.freeze(b.fromCssColorString("#D2691E")),b.CORAL=Object.freeze(b.fromCssColorString("#FF7F50")),b.CORNFLOWERBLUE=Object.freeze(b.fromCssColorString("#6495ED")),b.CORNSILK=Object.freeze(b.fromCssColorString("#FFF8DC")),b.CRIMSON=Object.freeze(b.fromCssColorString("#DC143C")),b.CYAN=Object.freeze(b.fromCssColorString("#00FFFF")),b.DARKBLUE=Object.freeze(b.fromCssColorString("#00008B")),b.DARKCYAN=Object.freeze(b.fromCssColorString("#008B8B")),b.DARKGOLDENROD=Object.freeze(b.fromCssColorString("#B8860B")),b.DARKGRAY=Object.freeze(b.fromCssColorString("#A9A9A9")),b.DARKGREEN=Object.freeze(b.fromCssColorString("#006400")),b.DARKGREY=b.DARKGRAY,b.DARKKHAKI=Object.freeze(b.fromCssColorString("#BDB76B")),b.DARKMAGENTA=Object.freeze(b.fromCssColorString("#8B008B")),b.DARKOLIVEGREEN=Object.freeze(b.fromCssColorString("#556B2F")),b.DARKORANGE=Object.freeze(b.fromCssColorString("#FF8C00")),b.DARKORCHID=Object.freeze(b.fromCssColorString("#9932CC")),b.DARKRED=Object.freeze(b.fromCssColorString("#8B0000")),b.DARKSALMON=Object.freeze(b.fromCssColorString("#E9967A")),b.DARKSEAGREEN=Object.freeze(b.fromCssColorString("#8FBC8F")),b.DARKSLATEBLUE=Object.freeze(b.fromCssColorString("#483D8B")),b.DARKSLATEGRAY=Object.freeze(b.fromCssColorString("#2F4F4F")),b.DARKSLATEGREY=b.DARKSLATEGRAY,b.DARKTURQUOISE=Object.freeze(b.fromCssColorString("#00CED1")),b.DARKVIOLET=Object.freeze(b.fromCssColorString("#9400D3")),b.DEEPPINK=Object.freeze(b.fromCssColorString("#FF1493")),b.DEEPSKYBLUE=Object.freeze(b.fromCssColorString("#00BFFF")),b.DIMGRAY=Object.freeze(b.fromCssColorString("#696969")),b.DIMGREY=b.DIMGRAY,b.DODGERBLUE=Object.freeze(b.fromCssColorString("#1E90FF")),b.FIREBRICK=Object.freeze(b.fromCssColorString("#B22222")),b.FLORALWHITE=Object.freeze(b.fromCssColorString("#FFFAF0")),b.FORESTGREEN=Object.freeze(b.fromCssColorString("#228B22")),b.FUCHSIA=Object.freeze(b.fromCssColorString("#FF00FF")),b.GAINSBORO=Object.freeze(b.fromCssColorString("#DCDCDC")),b.GHOSTWHITE=Object.freeze(b.fromCssColorString("#F8F8FF")),b.GOLD=Object.freeze(b.fromCssColorString("#FFD700")),b.GOLDENROD=Object.freeze(b.fromCssColorString("#DAA520")),b.GRAY=Object.freeze(b.fromCssColorString("#808080")),b.GREEN=Object.freeze(b.fromCssColorString("#008000")),b.GREENYELLOW=Object.freeze(b.fromCssColorString("#ADFF2F")),b.GREY=b.GRAY,b.HONEYDEW=Object.freeze(b.fromCssColorString("#F0FFF0")),b.HOTPINK=Object.freeze(b.fromCssColorString("#FF69B4")),b.INDIANRED=Object.freeze(b.fromCssColorString("#CD5C5C")),b.INDIGO=Object.freeze(b.fromCssColorString("#4B0082")),b.IVORY=Object.freeze(b.fromCssColorString("#FFFFF0")),b.KHAKI=Object.freeze(b.fromCssColorString("#F0E68C")),b.LAVENDER=Object.freeze(b.fromCssColorString("#E6E6FA")),b.LAVENDAR_BLUSH=Object.freeze(b.fromCssColorString("#FFF0F5")),b.LAWNGREEN=Object.freeze(b.fromCssColorString("#7CFC00")),b.LEMONCHIFFON=Object.freeze(b.fromCssColorString("#FFFACD")),b.LIGHTBLUE=Object.freeze(b.fromCssColorString("#ADD8E6")),b.LIGHTCORAL=Object.freeze(b.fromCssColorString("#F08080")),b.LIGHTCYAN=Object.freeze(b.fromCssColorString("#E0FFFF")),b.LIGHTGOLDENRODYELLOW=Object.freeze(b.fromCssColorString("#FAFAD2")),b.LIGHTGRAY=Object.freeze(b.fromCssColorString("#D3D3D3")),b.LIGHTGREEN=Object.freeze(b.fromCssColorString("#90EE90")),b.LIGHTGREY=b.LIGHTGRAY,b.LIGHTPINK=Object.freeze(b.fromCssColorString("#FFB6C1")),b.LIGHTSEAGREEN=Object.freeze(b.fromCssColorString("#20B2AA")),b.LIGHTSKYBLUE=Object.freeze(b.fromCssColorString("#87CEFA")),b.LIGHTSLATEGRAY=Object.freeze(b.fromCssColorString("#778899")),b.LIGHTSLATEGREY=b.LIGHTSLATEGRAY,b.LIGHTSTEELBLUE=Object.freeze(b.fromCssColorString("#B0C4DE")),b.LIGHTYELLOW=Object.freeze(b.fromCssColorString("#FFFFE0")),b.LIME=Object.freeze(b.fromCssColorString("#00FF00")),b.LIMEGREEN=Object.freeze(b.fromCssColorString("#32CD32")),b.LINEN=Object.freeze(b.fromCssColorString("#FAF0E6")),b.MAGENTA=Object.freeze(b.fromCssColorString("#FF00FF")),b.MAROON=Object.freeze(b.fromCssColorString("#800000")),b.MEDIUMAQUAMARINE=Object.freeze(b.fromCssColorString("#66CDAA")),b.MEDIUMBLUE=Object.freeze(b.fromCssColorString("#0000CD")),b.MEDIUMORCHID=Object.freeze(b.fromCssColorString("#BA55D3")),b.MEDIUMPURPLE=Object.freeze(b.fromCssColorString("#9370DB")),b.MEDIUMSEAGREEN=Object.freeze(b.fromCssColorString("#3CB371")),b.MEDIUMSLATEBLUE=Object.freeze(b.fromCssColorString("#7B68EE")),b.MEDIUMSPRINGGREEN=Object.freeze(b.fromCssColorString("#00FA9A")),b.MEDIUMTURQUOISE=Object.freeze(b.fromCssColorString("#48D1CC")),b.MEDIUMVIOLETRED=Object.freeze(b.fromCssColorString("#C71585")),b.MIDNIGHTBLUE=Object.freeze(b.fromCssColorString("#191970")),b.MINTCREAM=Object.freeze(b.fromCssColorString("#F5FFFA")),b.MISTYROSE=Object.freeze(b.fromCssColorString("#FFE4E1")),b.MOCCASIN=Object.freeze(b.fromCssColorString("#FFE4B5")),b.NAVAJOWHITE=Object.freeze(b.fromCssColorString("#FFDEAD")),b.NAVY=Object.freeze(b.fromCssColorString("#000080")),b.OLDLACE=Object.freeze(b.fromCssColorString("#FDF5E6")),b.OLIVE=Object.freeze(b.fromCssColorString("#808000")),b.OLIVEDRAB=Object.freeze(b.fromCssColorString("#6B8E23")),b.ORANGE=Object.freeze(b.fromCssColorString("#FFA500")),b.ORANGERED=Object.freeze(b.fromCssColorString("#FF4500")),b.ORCHID=Object.freeze(b.fromCssColorString("#DA70D6")),b.PALEGOLDENROD=Object.freeze(b.fromCssColorString("#EEE8AA")),b.PALEGREEN=Object.freeze(b.fromCssColorString("#98FB98")),b.PALETURQUOISE=Object.freeze(b.fromCssColorString("#AFEEEE")),b.PALEVIOLETRED=Object.freeze(b.fromCssColorString("#DB7093")),b.PAPAYAWHIP=Object.freeze(b.fromCssColorString("#FFEFD5")),b.PEACHPUFF=Object.freeze(b.fromCssColorString("#FFDAB9")),b.PERU=Object.freeze(b.fromCssColorString("#CD853F")),b.PINK=Object.freeze(b.fromCssColorString("#FFC0CB")),b.PLUM=Object.freeze(b.fromCssColorString("#DDA0DD")),b.POWDERBLUE=Object.freeze(b.fromCssColorString("#B0E0E6")),b.PURPLE=Object.freeze(b.fromCssColorString("#800080")),b.RED=Object.freeze(b.fromCssColorString("#FF0000")),b.ROSYBROWN=Object.freeze(b.fromCssColorString("#BC8F8F")),b.ROYALBLUE=Object.freeze(b.fromCssColorString("#4169E1")),b.SADDLEBROWN=Object.freeze(b.fromCssColorString("#8B4513")),b.SALMON=Object.freeze(b.fromCssColorString("#FA8072")),b.SANDYBROWN=Object.freeze(b.fromCssColorString("#F4A460")),b.SEAGREEN=Object.freeze(b.fromCssColorString("#2E8B57")),b.SEASHELL=Object.freeze(b.fromCssColorString("#FFF5EE")),b.SIENNA=Object.freeze(b.fromCssColorString("#A0522D")),b.SILVER=Object.freeze(b.fromCssColorString("#C0C0C0")),b.SKYBLUE=Object.freeze(b.fromCssColorString("#87CEEB")),b.SLATEBLUE=Object.freeze(b.fromCssColorString("#6A5ACD")),b.SLATEGRAY=Object.freeze(b.fromCssColorString("#708090")),b.SLATEGREY=b.SLATEGRAY,b.SNOW=Object.freeze(b.fromCssColorString("#FFFAFA")),b.SPRINGGREEN=Object.freeze(b.fromCssColorString("#00FF7F")),b.STEELBLUE=Object.freeze(b.fromCssColorString("#4682B4")),b.TAN=Object.freeze(b.fromCssColorString("#D2B48C")),b.TEAL=Object.freeze(b.fromCssColorString("#008080")),b.THISTLE=Object.freeze(b.fromCssColorString("#D8BFD8")),b.TOMATO=Object.freeze(b.fromCssColorString("#FF6347")),b.TURQUOISE=Object.freeze(b.fromCssColorString("#40E0D0")),b.VIOLET=Object.freeze(b.fromCssColorString("#EE82EE")),b.WHEAT=Object.freeze(b.fromCssColorString("#F5DEB3")),b.WHITE=Object.freeze(b.fromCssColorString("#FFFFFF")),b.WHITESMOKE=Object.freeze(b.fromCssColorString("#F5F5F5")),b.YELLOW=Object.freeze(b.fromCssColorString("#FFFF00")),b.YELLOWGREEN=Object.freeze(b.fromCssColorString("#9ACD32")),b.TRANSPARENT=Object.freeze(new b(0,0,0,0)),e.Color=b});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./OrientedBoundingBox-f3e4df94"],function(n,g,t,f){var e={},i=new g.Cartesian3,l=new g.Cartesian3,x=new g.Cartesian3,B=new g.Cartesian3,M=new f.OrientedBoundingBox;function o(n,t,e,r,a){n=g.Cartesian3.subtract(n,t,i),t=g.Cartesian3.dot(e,n),e=g.Cartesian3.dot(r,n);return g.Cartesian2.fromElements(t,e,a)}e.validOutline=function(n){var n=f.OrientedBoundingBox.fromPoints(n,M).halfAxes,t=g.Matrix3.getColumn(n,0,l),e=g.Matrix3.getColumn(n,1,x),n=g.Matrix3.getColumn(n,2,B),t=g.Cartesian3.magnitude(t),e=g.Cartesian3.magnitude(e),n=g.Cartesian3.magnitude(n);return!(0===t&&(0===e||0===n)||0===e&&0===n)},e.computeProjectTo2DArguments=function(n,t,e,r){var a,i,n=f.OrientedBoundingBox.fromPoints(n,M),o=n.halfAxes,u=g.Matrix3.getColumn(o,0,l),s=g.Matrix3.getColumn(o,1,x),o=g.Matrix3.getColumn(o,2,B),C=g.Cartesian3.magnitude(u),m=g.Cartesian3.magnitude(s),c=g.Cartesian3.magnitude(o),d=Math.min(C,m,c);return(0!==C||0!==m&&0!==c)&&(0!==m||0!==c)&&(d!==m&&d!==c||(a=u),d===C?a=s:d===c&&(i=s),d!==C&&d!==m||(i=o),g.Cartesian3.normalize(a,e),g.Cartesian3.normalize(i,r),g.Cartesian3.clone(n.center,t),!0)},e.createProjectPointsTo2DFunction=function(r,a,i){return function(n){for(var t=new Array(n.length),e=0;e<n.length;e++)t[e]=o(n[e],r,a,i);return t}},e.createProjectPointTo2DFunction=function(e,r,a){return function(n,t){return o(n,e,r,a,t)}},n.CoplanarPolygonGeometryLibrary=e});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./PolylineVolumeGeometryLibrary-897b738e","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./PolylinePipeline-83139cb3","./Transforms-c1a1d063"],function(a,R,V,s,Q,U,u){var e={},G=new R.Cartesian3,c=new R.Cartesian3,p=new R.Cartesian3,m=new R.Cartesian3,I=[new R.Cartesian3,new R.Cartesian3],q=new R.Cartesian3,j=new R.Cartesian3,k=new R.Cartesian3,F=new R.Cartesian3,H=new R.Cartesian3,J=new R.Cartesian3,K=new R.Cartesian3,W=new R.Cartesian3,X=new R.Cartesian3,Y=new R.Cartesian3,d=new u.Quaternion,g=new R.Matrix3;function Z(a,e,r,n,t){var i,s=R.Cartesian3.angleBetween(R.Cartesian3.subtract(e,a,G),R.Cartesian3.subtract(r,a,c)),o=n===V.CornerType.BEVELED?1:Math.ceil(s/Q.CesiumMath.toRadians(5))+1,n=3*o,C=new Array(n),l=(C[n-3]=r.x,C[n-2]=r.y,C[n-1]=r.z,i=t?R.Matrix3.fromQuaternion(u.Quaternion.fromAxisAngle(R.Cartesian3.negate(a,G),s/o,d),g):R.Matrix3.fromQuaternion(u.Quaternion.fromAxisAngle(a,s/o,d),g),0);e=R.Cartesian3.clone(e,G);for(var y=0;y<o;y++)e=R.Matrix3.multiplyByVector(i,e,e),C[l++]=e.x,C[l++]=e.y,C[l++]=e.z;return C}function $(a,e,r,n){var t=G;return n||(e=R.Cartesian3.negate(e,e)),[(t=R.Cartesian3.add(a,e,t)).x,t.y,t.z,r.x,r.y,r.z]}function _(a,e,r,n){for(var t=new Array(a.length),i=new Array(a.length),s=R.Cartesian3.multiplyByScalar(e,r,G),o=R.Cartesian3.negate(s,c),C=0,l=a.length-1,y=0;y<a.length;y+=3){var u=R.Cartesian3.fromArray(a,y,p),d=R.Cartesian3.add(u,o,m),d=(t[C++]=d.x,t[C++]=d.y,t[C++]=d.z,R.Cartesian3.add(u,s,m));i[l--]=d.z,i[l--]=d.y,i[l--]=d.x}return n.push(t,i),n}e.addAttribute=function(a,e,r,n){var t=e.x,i=e.y,e=e.z;s.defined(r)&&(a[r]=t,a[r+1]=i,a[r+2]=e),s.defined(n)&&(a[n]=e,a[n-1]=i,a[n-2]=t)};var aa=new R.Cartesian3,ea=new R.Cartesian3;e.computePositions=function(a){for(var e,r,n,t,i,s,o,C,l=a.granularity,y=a.positions,u=a.ellipsoid,d=a.width/2,c=a.cornerType,p=a.saveAttributes,m=q,g=j,h=k,f=F,w=H,x=J,z=K,b=W,P=X,A=Y,B=[],E=p?[]:void 0,S=p?[]:void 0,D=y[0],v=y[1],g=R.Cartesian3.normalize(R.Cartesian3.subtract(v,D,g),g),m=u.geodeticSurfaceNormal(D,m),f=R.Cartesian3.normalize(R.Cartesian3.cross(m,g,f),f),z=(p&&(E.push(f.x,f.y,f.z),S.push(m.x,m.y,m.z)),R.Cartesian3.clone(D,z)),D=v,h=R.Cartesian3.negate(g,h),M=[],T=y.length,N=1;N<T-1;N++){m=u.geodeticSurfaceNormal(D,m),v=y[N+1],g=R.Cartesian3.normalize(R.Cartesian3.subtract(v,D,g),g),w=R.Cartesian3.normalize(R.Cartesian3.add(g,h,w),w);var L=R.Cartesian3.multiplyByScalar(m,R.Cartesian3.dot(g,m),aa),O=(R.Cartesian3.subtract(g,L,L),R.Cartesian3.normalize(L,L),R.Cartesian3.multiplyByScalar(m,R.Cartesian3.dot(h,m),ea));R.Cartesian3.subtract(h,O,O),R.Cartesian3.normalize(O,O),!Q.CesiumMath.equalsEpsilon(Math.abs(R.Cartesian3.dot(L,O)),1,Q.CesiumMath.EPSILON7)&&(w=R.Cartesian3.cross(w,m,w),w=R.Cartesian3.cross(m,w,w),w=R.Cartesian3.normalize(w,w),L=d/Math.max(.25,R.Cartesian3.magnitude(R.Cartesian3.cross(w,h,G))),O=V.PolylineVolumeGeometryLibrary.angleIsGreaterThanPi(g,h,D,u),w=R.Cartesian3.multiplyByScalar(w,L,w),O?(b=R.Cartesian3.add(D,w,b),A=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,d,A),A),P=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,2*d,P),P),I[0]=R.Cartesian3.clone(z,I[0]),I[1]=R.Cartesian3.clone(A,I[1]),B=_(e=U.PolylinePipeline.generateArc({positions:I,granularity:l,ellipsoid:u}),f,d,B),p&&(E.push(f.x,f.y,f.z),S.push(m.x,m.y,m.z)),x=R.Cartesian3.clone(P,x),f=R.Cartesian3.normalize(R.Cartesian3.cross(m,g,f),f),P=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,2*d,P),P),z=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,d,z),z),c===V.CornerType.ROUNDED||c===V.CornerType.BEVELED?M.push({leftPositions:Z(b,x,P,c,O)}):M.push({leftPositions:$(D,R.Cartesian3.negate(w,w),P,O)})):(P=R.Cartesian3.add(D,w,P),A=R.Cartesian3.add(P,R.Cartesian3.negate(R.Cartesian3.multiplyByScalar(f,d,A),A),A),b=R.Cartesian3.add(P,R.Cartesian3.negate(R.Cartesian3.multiplyByScalar(f,2*d,b),b),b),I[0]=R.Cartesian3.clone(z,I[0]),I[1]=R.Cartesian3.clone(A,I[1]),B=_(e=U.PolylinePipeline.generateArc({positions:I,granularity:l,ellipsoid:u}),f,d,B),p&&(E.push(f.x,f.y,f.z),S.push(m.x,m.y,m.z)),x=R.Cartesian3.clone(b,x),f=R.Cartesian3.normalize(R.Cartesian3.cross(m,g,f),f),b=R.Cartesian3.add(P,R.Cartesian3.negate(R.Cartesian3.multiplyByScalar(f,2*d,b),b),b),z=R.Cartesian3.add(P,R.Cartesian3.negate(R.Cartesian3.multiplyByScalar(f,d,z),z),z),c===V.CornerType.ROUNDED||c===V.CornerType.BEVELED?M.push({rightPositions:Z(P,x,b,c,O)}):M.push({rightPositions:$(D,w,b,O)})),h=R.Cartesian3.negate(g,h)),D=v}return m=u.geodeticSurfaceNormal(D,m),I[0]=R.Cartesian3.clone(z,I[0]),I[1]=R.Cartesian3.clone(D,I[1]),e=U.PolylinePipeline.generateArc({positions:I,granularity:l,ellipsoid:u}),B=_(e,f,d,B),p&&(E.push(f.x,f.y,f.z),S.push(m.x,m.y,m.z)),c===V.CornerType.ROUNDED&&(a=q,n=k,t=(r=B)[1],i=R.Cartesian3.fromArray(r[1],t.length-3,j),n=R.Cartesian3.fromArray(r[0],0,n),s=Z(a=R.Cartesian3.midpoint(i,n,a),i,n,V.CornerType.ROUNDED,!1),o=r.length-1,C=r[o-1],t=r[o],i=R.Cartesian3.fromArray(C,C.length-3,i),n=R.Cartesian3.fromArray(t,0,n),r=[s,Z(R.Cartesian3.midpoint(i,n,a),i,n,V.CornerType.ROUNDED,!1)]),{positions:B,corners:M,lefts:E,normals:S,endPositions:r}},a.CorridorGeometryLibrary=e});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./CylinderGeometryLibrary-7afd8cad","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(t,P,E,M,k,z,N,e,I,U,S,m){var B=new M.Cartesian2,Y=new M.Cartesian3,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,d=new m.VertexFormat,p={vertexFormat:d,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,d),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(p.length=n,p.topRadius=o,p.bottomRadius=i,p.slices=s,p.offsetAttribute=-1===t?void 0:t,new u(p))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=z.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),d=n.st?new Float32Array(2*m):void 0,p=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,f=n.bitangent?new Float32Array(3*m):void 0,l=n.normal||n.tangent||n.bitangent;if(l){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,x=Math.atan2(r-a,e),g=Y,_=(g.z=Math.sin(x),Math.cos(x)),h=J,F=Z,C=0;C<o;C++){var w=C/o*k.CesiumMath.TWO_PI,G=_*Math.cos(w),w=_*Math.sin(w);l&&(g.x=G,g.y=w,b&&(h=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,g,h),h)),n.normal&&(p[c++]=g.x,p[c++]=g.y,p[c++]=g.z,p[c++]=g.x,p[c++]=g.y,p[c++]=g.z),n.tangent&&(y[A++]=h.x,y[A++]=h.y,y[A++]=h.z,y[A++]=h.x,y[A++]=h.y,y[A++]=h.z),n.bitangent)&&(F=M.Cartesian3.normalize(M.Cartesian3.cross(g,h,F),F),f[v++]=F.x,f[v++]=F.y,f[v++]=F.z,f[v++]=F.x,f[v++]=F.y,f[v++]=F.z)}for(C=0;C<o;C++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(f[v++]=0,f[v++]=-1,f[v++]=0);for(C=0;C<o;C++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(f[v++]=0,f[v++]=1,f[v++]=0)}var R=S.IndexDatatype.createTypedArray(m,12*o-12),D=0,V=0;for(C=0;C<o-1;C++)R[D++]=V,R[D++]=V+2,R[D++]=V+3,R[D++]=V,R[D++]=V+3,R[D++]=V+1,V+=2;for(R[D++]=i-2,R[D++]=0,R[D++]=1,R[D++]=i-2,R[D++]=1,R[D++]=i-1,C=1;C<o-1;C++)R[D++]=i+C+1,R[D++]=i+C,R[D++]=i;for(C=1;C<o-1;C++)R[D++]=s,R[D++]=s+C,R[D++]=s+C+1;var T=0;if(n.st){var O=Math.max(a,r);for(C=0;C<m;C++){var L=M.Cartesian3.fromArray(u,3*C,W);d[T++]=(L.x+O)/(2*O),d[T++]=(L.y+O)/(2*O)}}x=new U.GeometryAttributes,r=(n.position&&(x.position=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(x.normal=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p})),n.tangent&&(x.tangent=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(x.bitangent=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),n.st&&(x.st=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:d})),B.x=.5*e,B.y=Math.max(r,a),new E.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(B)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),x.applyOffset=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:x,indices:R,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./EllipseGeometryLibrary-c242429c","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryInstance-e2137e03","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(e,S,L,R,t,j,z,k,B,Y,m,C,p,d){var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new R.Matrix3,ie=new R.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function y(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,x=0,f=K,h=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=R.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),R.Matrix3.fromQuaternion(O,v)):(C=R.Matrix3.clone(R.Matrix3.IDENTITY,C),R.Matrix3.clone(R.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),M=e.length,I=r?M:0,T=I/3*2,G=0;G<M;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=R.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),r&&(p[x+T]=J.x,p[x+1+T]=J.y),p[x++]=J.x,p[x++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(f=s.geodeticSurfaceNormal(V,f),m&&(A[G+I]=-f.x,A[P+I]=-f.y,A[F+I]=-f.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(h=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,f,h),h),R.Matrix3.multiplyByVector(v,h,h)),a.normal&&(y[G]=f.x,y[P]=f.y,y[F]=f.z,r)&&(y[G+I]=-f.x,y[P+I]=-f.y,y[F+I]=-f.z),a.tangent&&(c[G]=h.x,c[P]=h.y,c[F]=h.z,r)&&(c[G+I]=-h.x,c[P+I]=-h.y,c[F+I]=-h.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(f,h,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var M=p.length,D=0;D<M;D+=2)p[D]=(p[D]-w.x)/(E.x-w.x),p[D+1]=(p[D+1]-w.y)/(E.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=k.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&z.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function c(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var A=new L.BoundingSphere,x=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(A.center=R.Cartesian3.add(t,i,A.center),A.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),x.center=R.Cartesian3.add(t,i,x.center),x.radius=a,k.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(A,x),n=y(t,e,!0),o=(u=c(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,x=t.shadowVolume,f=x?new Float32Array(3*m):void 0,h=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=R.Matrix3.fromQuaternion(a,q),E=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=R.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),E.x=Math.min(J.x,E.x),E.y=Math.min(J.y,E.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),y[h+I]=J.x,y[h+1+I]=J.y,y[h++]=J.x,y[h++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),x&&(f[T+D]=-g.x,f[G+D]=-g.y,f[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-E.x)/(M.x-E.x),y[O+1]=(y[O+1]-E.y)/(M.y-E.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),x&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),z.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=k.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>j.CesiumMath.PI&&(e.north=0<e.north?j.CesiumMath.PI_OVER_TWO-j.CesiumMath.EPSILON7:e.north,e.south=e.south<0?j.CesiumMath.EPSILON7-j.CesiumMath.PI_OVER_TWO:e.south,e.east=j.CesiumMath.PI,e.west=-j.CesiumMath.PI),e}function f(e){var t=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).center,r=z.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=z.defaultValue(e.granularity,j.CesiumMath.RADIANS_PER_DEGREE),o=z.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=z.defaultValue(e.height,0),l=z.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=z.defaultValue(e.rotation,0),this._stRotation=z.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=z.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,f.pack=function(e,t,r){return r=z.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=z.defaultValue(e._offsetAttribute,-1),t};var h=new R.Cartesian3,g=new R.Ellipsoid,_=new d.VertexFormat,b={center:h,ellipsoid:g,vertexFormat:_,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};f.unpack=function(e,t,r){t=z.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,h),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,g)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,_)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return z.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new f(b))},f.computeRectangle=function(e,t){var r=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).center,a=z.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=z.defaultValue(e.granularity,j.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,z.defaultValue(e.rotation,0),o,a,t)},f.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=!j.CesiumMath.equalsEpsilon(n=e._height,a=e._extrudedHeight,0,j.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=k.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=y(i,r,!1),n=c(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},z.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},f.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new f({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(f.prototype,{rectangle:{get:function(){return z.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return z.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=k.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e.rectangle)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=f});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./Transforms-c1a1d063"],function(a,E,V,y){var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new E.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),m),E.Cartesian3.add(u,m,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,c),E.Matrix3.fromQuaternion(c,h),E.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(t.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=t.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var f,z,d,_,p=e?new Array(3*(h*(h+2)*2)):void 0,O=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,f=1;f<h+1;++f){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,d=2*f+2,z=1;z<d-1;++z)_=E.Cartesian3.lerp(w,P,z/(d-1),W),p[O++]=_.x,p[O++]=_.y,p[O++]=_.z;p[O++]=P.x,p[O++]=P.y,p[O++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(f+1)*x}for(f=h;1<f;--f){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(f-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,d=2*(f-1)+2,z=1;z<d-1;++z)_=E.Cartesian3.lerp(w,P,z/(d-1),W),p[O++]=_.x,p[O++]=_.y,p[O++]=_.z;p[O++]=P.x,p[O++]=P.y,p[O++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);t={};return e&&(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,t.positions=p,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./EllipseGeometryLibrary-c242429c","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(e,p,c,f,m,h,t,y,b,A,_){var g=new f.Cartesian3,s=new f.Cartesian3;var x=new c.BoundingSphere,E=new c.BoundingSphere;function M(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,m.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}M.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,M.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,C=new f.Ellipsoid,G={center:v,ellipsoid:C,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};M.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,C)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(G.height=u,G.extrudedHeight=d,G.granularity=l,G.rotation=s,G.semiMajorAxis=n,G.semiMinorAxis=o,G.numberOfVerticalLines=p,G.offsetAttribute=-1===e?void 0:e,new M(G))},M.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return t=!m.CesiumMath.equalsEpsilon(r=e._height,i=e._extrudedHeight,0,m.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,g),e.height,g),i=(x.center=f.Cartesian3.add(t,a,x.center),x.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(x,E),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=m.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=M});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(t,Q,$,tt,et,at,e,it,rt,nt,f){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});
@@ -0,0 +1 @@
1
+ define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-c1a1d063","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(i,D,I,T,z,L,t,R,N,B){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});
@@ -0,0 +1 @@
1
+ define(["exports","./AxisAlignedBoundingBox-9c01642b","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./IntersectionTests-60f10d18","./Plane-43337cee","./Transforms-c1a1d063"],function(e,t,s,n,l,i,r,a){var o=new s.Cartesian4;function d(e,n){e=(n=l.defaultValue(n,s.Ellipsoid.WGS84)).scaleToGeodeticSurface(e);var t=a.Transforms.eastNorthUpToFixedFrame(e,n),n=(this._ellipsoid=n,this._origin=e,this._xAxis=s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(t,0,o)),this._yAxis=s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(t,1,o)),s.Cartesian3.fromCartesian4(s.Matrix4.getColumn(t,2,o)));this._plane=r.Plane.fromPointNormal(e,n)}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 t.AxisAlignedBoundingBox,p=(d.fromPoints=function(e,n){return new d(t.AxisAlignedBoundingBox.fromPoints(e,c).center,n)},new i.Ray),f=new s.Cartesian3,u=(d.prototype.projectPointOntoPlane=function(e,n){var t=p,e=(t.origin=e,s.Cartesian3.normalize(e,t.direction),i.IntersectionTests.rayPlane(t,this._plane,f));if(l.defined(e)||(s.Cartesian3.negate(t.direction,t.direction),e=i.IntersectionTests.rayPlane(t,this._plane,f)),l.defined(e))return t=s.Cartesian3.subtract(e,this._origin,e),e=s.Cartesian3.dot(this._xAxis,t),t=s.Cartesian3.dot(this._yAxis,t),l.defined(n)?(n.x=e,n.y=t,n):new s.Cartesian2(e,t)},d.prototype.projectPointsOntoPlane=function(e,n){l.defined(n)||(n=[]);for(var t=0,i=e.length,r=0;r<i;r++){var a=this.projectPointOntoPlane(e[r],n[t]);l.defined(a)&&(n[t]=a,t++)}return n.length=t,n},d.prototype.projectPointToNearestOnPlane=function(e,n){l.defined(n)||(n=new s.Cartesian2);var t=p,e=(t.origin=e,s.Cartesian3.clone(this._plane.normal,t.direction),i.IntersectionTests.rayPlane(t,this._plane,f)),t=(l.defined(e)||(s.Cartesian3.negate(t.direction,t.direction),e=i.IntersectionTests.rayPlane(t,this._plane,f)),s.Cartesian3.subtract(e,this._origin,e)),e=s.Cartesian3.dot(this._xAxis,t),t=s.Cartesian3.dot(this._yAxis,t);return n.x=e,n.y=t,n},d.prototype.projectPointsToNearestOnPlane=function(e,n){l.defined(n)||(n=[]);var t=e.length;n.length=t;for(var i=0;i<t;i++)n[i]=this.projectPointToNearestOnPlane(e[i],n[i]);return n},new s.Cartesian3);d.prototype.projectPointOntoEllipsoid=function(e,n){l.defined(n)||(n=new s.Cartesian3);var t=this._ellipsoid,i=this._origin,r=this._xAxis,a=this._yAxis,o=u;return s.Cartesian3.multiplyByScalar(r,e.x,o),n=s.Cartesian3.add(i,o,n),s.Cartesian3.multiplyByScalar(a,e.y,o),s.Cartesian3.add(n,o,n),t.scaleToGeocentricSurface(n,n),n},d.prototype.projectPointsOntoEllipsoid=function(e,n){var t=e.length;l.defined(n)?n.length=t:n=new Array(t);for(var i=0;i<t;++i)n[i]=this.projectPointOntoEllipsoid(e[i],n[i]);return n},e.EllipsoidTangentPlane=d});
@@ -0,0 +1 @@
1
+ define(["exports","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./Plane-43337cee","./VertexFormat-1fc9746e"],function(t,g,w,a,v,x,b,M,f,u){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});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./WebGLConstants-35626ea2","./Transforms-c1a1d063"],function(t,d,e,n,a,x){var r=Object.freeze({NONE:0,TRIANGLES:1,LINES:2,POLYLINES:3}),i={POINTS:a.WebGLConstants.POINTS,LINES:a.WebGLConstants.LINES,LINE_LOOP:a.WebGLConstants.LINE_LOOP,LINE_STRIP:a.WebGLConstants.LINE_STRIP,TRIANGLES:a.WebGLConstants.TRIANGLES,TRIANGLE_STRIP:a.WebGLConstants.TRIANGLE_STRIP,TRIANGLE_FAN:a.WebGLConstants.TRIANGLE_FAN,validate:function(t){return t===i.POINTS||t===i.LINES||t===i.LINE_LOOP||t===i.LINE_STRIP||t===i.TRIANGLES||t===i.TRIANGLE_STRIP||t===i.TRIANGLE_FAN}},o=Object.freeze(i);function s(t){t=n.defaultValue(t,n.defaultValue.EMPTY_OBJECT),this.attributes=t.attributes,this.indices=t.indices,this.primitiveType=n.defaultValue(t.primitiveType,o.TRIANGLES),this.boundingSphere=t.boundingSphere,this.geometryType=n.defaultValue(t.geometryType,r.NONE),this.boundingSphereCV=t.boundingSphereCV,this.offsetAttribute=t.offsetAttribute}s.computeNumberOfVertices=function(t){var e,a,r=-1;for(e in t.attributes)t.attributes.hasOwnProperty(e)&&n.defined(t.attributes[e])&&n.defined(t.attributes[e].values)&&(r=(a=t.attributes[e]).values.length/a.componentsPerAttribute);return r};var A=new d.Cartographic,P=new d.Cartesian3,S=new d.Matrix4,G=[new d.Cartographic,new d.Cartographic,new d.Cartographic],w=[new d.Cartesian2,new d.Cartesian2,new d.Cartesian2],R=[new d.Cartesian2,new d.Cartesian2,new d.Cartesian2],O=new d.Cartesian3,_=new x.Quaternion,g=new d.Matrix4,V=new d.Matrix2;s._textureCoordinateRotationPoints=function(t,e,a,r){for(var n=d.Rectangle.center(r,A),n=d.Cartographic.toCartesian(n,a,P),n=x.Transforms.eastNorthUpToFixedFrame(n,a,S),i=d.Matrix4.inverse(n,S),o=w,s=G,u=(s[0].longitude=r.west,s[0].latitude=r.south,s[1].longitude=r.west,s[1].latitude=r.north,s[2].longitude=r.east,s[2].latitude=r.south,O),I=0;I<3;I++)d.Cartographic.toCartesian(s[I],a,u),u=d.Matrix4.multiplyByPointAsVector(i,u,u),o[I].x=u.x,o[I].y=u.y;var n=x.Quaternion.fromAxisAngle(d.Cartesian3.UNIT_Z,-e,_),N=d.Matrix3.fromQuaternion(n,g),T=t.length,l=Number.POSITIVE_INFINITY,m=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,y=Number.NEGATIVE_INFINITY;for(I=0;I<T;I++)u=d.Matrix4.multiplyByPointAsVector(i,t[I],u),u=d.Matrix3.multiplyByVector(N,u,u),l=Math.min(l,u.x),m=Math.min(m,u.y),p=Math.max(p,u.x),y=Math.max(y,u.y);var E=d.Matrix2.fromRotation(e,V),b=R,c=(b[0].x=l,b[0].y=m,b[1].x=l,b[1].y=y,b[2].x=p,b[2].y=m,o[0]),f=o[2].x-c.x,L=o[1].y-c.y;for(I=0;I<3;I++){var h=b[I];d.Matrix2.multiplyByVector(E,h,h),h.x=(h.x-c.x)/f,h.y=(h.y-c.y)/L}var r=b[0],n=b[1],e=b[2],C=new Array(6);return d.Cartesian2.pack(r,C),d.Cartesian2.pack(n,C,2),d.Cartesian2.pack(e,C,4),C},t.Geometry=s,t.GeometryAttribute=function(t){t=n.defaultValue(t,n.defaultValue.EMPTY_OBJECT),this.componentDatatype=t.componentDatatype,this.componentsPerAttribute=t.componentsPerAttribute,this.normalize=n.defaultValue(t.normalize,!1),this.values=t.values},t.GeometryType=r,t.PrimitiveType=o});
@@ -0,0 +1 @@
1
+ define(["exports","./AttributeCompression-2f7b45b7","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18","./Transforms-c1a1d063","./EncodedCartesian3-3b6655b5","./GeometryAttribute-3dd6da35","./IndexDatatype-6902a37d","./IntersectionTests-60f10d18","./Plane-43337cee"],function(t,A,R,r,V,D,M,C,G,S,q,U){var Y=new R.Cartesian3,Z=new R.Cartesian3,H=new R.Cartesian3;var h={calculateACMR:function(e){var t=(e=V.defaultValue(e,V.defaultValue.EMPTY_OBJECT)).indices,r=e.maximumIndex,a=V.defaultValue(e.cacheSize,24),i=t.length;if(!V.defined(r))for(var r=0,n=0,s=t[n];n<i;)r<s&&(r=s),s=t[++n];for(var o=[],u=0;u<r+1;u++)o[u]=0;for(var p=a+1,d=0;d<i;++d)p-o[t[d]]>a&&(o[t[d]]=p,++p);return(p-a+1)/(i/3)}},e=(h.tipsify=function(e){var t=(e=V.defaultValue(e,V.defaultValue.EMPTY_OBJECT)).indices,r=e.maximumIndex,a=V.defaultValue(e.cacheSize,24);function i(e,t,r,a,i,n,s){for(var o,u=-1,p=-1,d=0;d<r.length;){var l=r[d];a[l].numLiveTriangles&&(o=0,p<(o=i-a[l].timeStamp+2*a[l].numLiveTriangles<=t?i-a[l].timeStamp:o)||-1===p)&&(p=o,u=l),++d}if(-1!==u)return u;for(var y=a,f=n,m=s;1<=f.length;){var v=f[f.length-1];if(f.splice(f.length-1,1),0<y[v].numLiveTriangles)return v}for(;c<m;){if(0<y[c].numLiveTriangles)return++c-1;++c}return-1}var e=t.length,n=0,s=t[P=0],o=e;if(V.defined(r))n=r+1;else{for(;P<o;)n<s&&(n=s),s=t[++P];if(-1===n)return 0;++n}for(var u=[],p=0;p<n;p++)u[p]={numLiveTriangles:0,timeStamp:0,vertexTriangles:[]};for(var d=P=0;P<o;)u[t[P]].vertexTriangles.push(d),++u[t[P]].numLiveTriangles,u[t[P+1]].vertexTriangles.push(d),++u[t[P+1]].numLiveTriangles,u[t[P+2]].vertexTriangles.push(d),++u[t[P+2]].numLiveTriangles,++d,P+=3;var l,y=0,f=a+1,c=1,m=[],v=[],C=0,h=[],b=e/3,g=[];for(p=0;p<b;p++)g[p]=!1;for(;-1!==y;){for(var A,m=[],T=(A=u[y]).vertexTriangles.length,x=0;x<T;++x)if(!g[d=A.vertexTriangles[x]]){g[d]=!0;for(var P=d+d+d,w=0;w<3;++w)l=t[P],m.push(l),v.push(l),h[C]=l,++C,--(l=u[l]).numLiveTriangles,a<f-l.timeStamp&&(l.timeStamp=f,++f),++P}y=i(0,a,m,u,f,v,n)}return h},{});function s(e,t,r,a,i){e[t++]=r,e[t++]=a,e[t++]=a,e[t++]=i,e[t++]=i,e[t]=r}function g(e){var t,r,a={};for(t in e)e.hasOwnProperty(t)&&V.defined(e[t])&&V.defined(e[t].values)&&(r=e[t],a[t]=new G.GeometryAttribute({componentDatatype:r.componentDatatype,componentsPerAttribute:r.componentsPerAttribute,normalize:r.normalize,values:[]}));return a}e.toWireframe=function(e){var t=e.indices;if(V.defined(t)){switch(e.primitiveType){case G.PrimitiveType.TRIANGLES:e.indices=function(e){for(var t=e.length,r=S.IndexDatatype.createTypedArray(t,t/3*6),a=0,i=0;i<t;i+=3,a+=6)s(r,a,e[i],e[i+1],e[i+2]);return r}(t);break;case G.PrimitiveType.TRIANGLE_STRIP:e.indices=function(e){var t=e.length;if(3<=t){for(var r=S.IndexDatatype.createTypedArray(t,6*(t-2)),a=(s(r,0,e[0],e[1],e[2]),6),i=3;i<t;++i,a+=6)s(r,a,e[i-1],e[i],e[i-2]);return r}return new Uint16Array}(t);break;case G.PrimitiveType.TRIANGLE_FAN:e.indices=function(e){if(0<e.length){for(var t=e.length-1,r=S.IndexDatatype.createTypedArray(t,6*(t-1)),a=e[0],i=0,n=1;n<t;++n,i+=6)s(r,i,a,e[n],e[n+1]);return r}return new Uint16Array}(t)}e.primitiveType=G.PrimitiveType.LINES}return e},e.createLineSegmentsForVectors=function(e,t,r){t=V.defaultValue(t,"normal"),r=V.defaultValue(r,1e4);for(var a,i=e.attributes.position.values,n=e.attributes[t].values,s=i.length,o=new Float64Array(2*s),u=0,p=0;p<s;p+=3)o[u++]=i[p],o[u++]=i[p+1],o[u++]=i[p+2],o[u++]=i[p]+n[p]*r,o[u++]=i[p+1]+n[p+1]*r,o[u++]=i[p+2]+n[p+2]*r;t=e.boundingSphere;return V.defined(t)&&(a=new M.BoundingSphere(t.center,t.radius+r)),new G.Geometry({attributes:{position:new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:o})},primitiveType:G.PrimitiveType.LINES,boundingSphere:a})},e.createAttributeLocations=function(e){for(var t,r=["position","positionHigh","positionLow","position3DHigh","position3DLow","position2DHigh","position2DLow","pickColor","normal","st","tangent","bitangent","extrudeDirection","compressedAttributes"],a=e.attributes,i={},n=0,s=r.length,o=0;o<s;++o){var u=r[o];V.defined(a[u])&&(i[u]=n++)}for(t in a)a.hasOwnProperty(t)&&!V.defined(i[t])&&(i[t]=n++);return i},e.reorderForPreVertexCache=function(e){var t=G.Geometry.computeNumberOfVertices(e),r=e.indices;if(V.defined(r)){for(var a=new Int32Array(t),i=0;i<t;i++)a[i]=-1;for(var n,s=r,o=s.length,u=S.IndexDatatype.createTypedArray(t,o),p=0,d=0,l=0;p<o;)-1!==(n=a[s[p]])?u[d]=n:(a[s[p]]=l,u[d]=l,++l),++p,++d;e.indices=u;var y,f=e.attributes;for(y in f)if(f.hasOwnProperty(y)&&V.defined(f[y])&&V.defined(f[y].values)){for(var m=f[y],v=m.values,c=0,C=m.componentsPerAttribute,h=D.ComponentDatatype.createTypedArray(m.componentDatatype,l*C);c<t;){var b=a[c];if(-1!==b)for(var g=0;g<C;g++)h[C*b+g]=v[C*c+g];++c}m.values=h}}return e},e.reorderForPostVertexCache=function(e,t){var r=e.indices;if(e.primitiveType===G.PrimitiveType.TRIANGLES&&V.defined(r)){for(var a=r.length,i=0,n=0;n<a;n++)r[n]>i&&(i=r[n]);e.indices=h.tipsify({indices:r,maximumIndex:i,cacheSize:t})}return e},e.fitToUnsignedShortIndices=function(e){var t=[],r=G.Geometry.computeNumberOfVertices(e);if(V.defined(e.indices)&&r>=D.CesiumMath.SIXTY_FOUR_KILOBYTES){var a,i=[],n=[],s=0,o=g(e.attributes),u=e.indices,p=u.length;e.primitiveType===G.PrimitiveType.TRIANGLES?a=3:e.primitiveType===G.PrimitiveType.LINES?a=2:e.primitiveType===G.PrimitiveType.POINTS&&(a=1);for(var d=0;d<p;d+=a){for(var l=0;l<a;++l){var y=u[d+l],f=i[y];if(!V.defined(f)){f=s++,i[y]=f,b=h=m=C=c=v=void 0;var m,v=o,c=e.attributes,C=y;for(m in c)if(c.hasOwnProperty(m)&&V.defined(c[m])&&V.defined(c[m].values))for(var h=c[m],b=0;b<h.componentsPerAttribute;++b)v[m].values.push(h.values[C*h.componentsPerAttribute+b])}n.push(f)}s+a>=D.CesiumMath.SIXTY_FOUR_KILOBYTES&&(t.push(new G.Geometry({attributes:o,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV})),i=[],n=[],s=0,o=g(e.attributes))}0!==n.length&&t.push(new G.Geometry({attributes:o,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV}))}else t.push(e);return t};var b=new R.Cartesian3,W=new R.Cartographic,d=(e.projectTo2D=function(e,t,r,a,i){for(var n=e.attributes[t],s=(i=V.defined(i)?i:new M.GeographicProjection).ellipsoid,o=n.values,u=new Float64Array(o.length),p=0,d=0;d<o.length;d+=3){var l=R.Cartesian3.fromArray(o,d,b),l=s.cartesianToCartographic(l,W),l=i.project(l,b);u[p++]=l.x,u[p++]=l.y,u[p++]=l.z}return e.attributes[r]=n,e.attributes[a]=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u}),delete e.attributes[t],e},{high:0,low:0}),n=(e.encodeAttribute=function(e,t,r,a){for(var i=e.attributes[t],n=i.values,s=n.length,o=new Float32Array(s),u=new Float32Array(s),p=0;p<s;++p)C.EncodedCartesian3.encode(n[p],d),o[p]=d.high,u[p]=d.low;i=i.componentsPerAttribute;return e.attributes[r]=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:i,values:o}),e.attributes[a]=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:i,values:u}),delete e.attributes[t],e},new R.Cartesian3);function a(e,t){if(V.defined(t))for(var r=t.values,a=r.length,i=0;i<a;i+=3)R.Cartesian3.unpack(r,i,n),R.Matrix4.multiplyByPoint(e,n,n),R.Cartesian3.pack(n,r,i)}function i(e,t){if(V.defined(t))for(var r=t.values,a=r.length,i=0;i<a;i+=3)R.Cartesian3.unpack(r,i,n),R.Matrix3.multiplyByVector(e,n,n),n=R.Cartesian3.normalize(n,n),R.Cartesian3.pack(n,r,i)}var o=new R.Matrix4,u=new R.Matrix3;e.transformToWorldCoordinates=function(e){var t,r=e.modelMatrix;return R.Matrix4.equals(r,R.Matrix4.IDENTITY)||(a(r,(t=e.geometry.attributes).position),a(r,t.prevPosition),a(r,t.nextPosition),(V.defined(t.normal)||V.defined(t.tangent)||V.defined(t.bitangent))&&(R.Matrix4.inverse(r,o),R.Matrix4.transpose(o,o),R.Matrix4.getMatrix3(o,u),i(u,t.normal),i(u,t.tangent),i(u,t.bitangent)),t=e.geometry.boundingSphere,V.defined(t)&&(e.geometry.boundingSphere=M.BoundingSphere.transform(t,r,t)),e.modelMatrix=R.Matrix4.clone(R.Matrix4.IDENTITY)),e};var X=new R.Cartesian3;function p(e,t){var r,a,i,n,s,o,u=e.length,p=(e[0].modelMatrix,V.defined(e[0][t].indices)),d=e[0][t].primitiveType,l=function(e,t){var r,a=e.length,i={},n=e[0][t].attributes;for(r in n)if(n.hasOwnProperty(r)&&V.defined(n[r])&&V.defined(n[r].values)){for(var s=n[r],o=s.values.length,u=!0,p=1;p<a;++p){var d=e[p][t].attributes[r];if(!V.defined(d)||s.componentDatatype!==d.componentDatatype||s.componentsPerAttribute!==d.componentsPerAttribute||s.normalize!==d.normalize){u=!1;break}o+=d.values.length}u&&(i[r]=new G.GeometryAttribute({componentDatatype:s.componentDatatype,componentsPerAttribute:s.componentsPerAttribute,normalize:s.normalize,values:D.ComponentDatatype.createTypedArray(s.componentDatatype,o)}))}return i}(e,t);for(r in l)if(l.hasOwnProperty(r))for(i=l[r].values,f=b=0;f<u;++f)for(s=(n=e[f][t].attributes[r].values).length,a=0;a<s;++a)i[b++]=n[a];if(p){for(var y=0,f=0;f<u;++f)y+=e[f][t].indices.length;var p=G.Geometry.computeNumberOfVertices(new G.Geometry({attributes:l,primitiveType:G.PrimitiveType.POINTS})),m=S.IndexDatatype.createTypedArray(p,y),v=0,c=0;for(f=0;f<u;++f){for(var C=e[f][t].indices,h=C.length,b=0;b<h;++b)m[v++]=c+C[b];c+=G.Geometry.computeNumberOfVertices(e[f][t])}o=m}var g=new R.Cartesian3,A=0;for(f=0;f<u;++f){if(T=e[f][t].boundingSphere,!V.defined(T)){g=void 0;break}R.Cartesian3.add(T.center,g,g)}if(V.defined(g))for(R.Cartesian3.divideByScalar(g,u,g),f=0;f<u;++f){var T=e[f][t].boundingSphere,x=R.Cartesian3.magnitude(R.Cartesian3.subtract(T.center,g,X))+T.radius;A<x&&(A=x)}return new G.Geometry({attributes:l,indices:o,primitiveType:d,boundingSphere:V.defined(g)?new M.BoundingSphere(g,A):void 0})}e.combineInstances=function(e){for(var t=[],r=[],a=e.length,i=0;i<a;++i){var n=e[i];V.defined(n.geometry)?t.push(n):V.defined(n.westHemisphereGeometry)&&V.defined(n.eastHemisphereGeometry)&&r.push(n)}var s=[];return 0<t.length&&s.push(p(t,"geometry")),0<r.length&&(s.push(p(r,"westHemisphereGeometry")),s.push(p(r,"eastHemisphereGeometry"))),s};var T=new R.Cartesian3,x=new R.Cartesian3,P=new R.Cartesian3,w=new R.Cartesian3,j=(e.computeNormal=function(e){for(var t=e.indices,r=e.attributes,a=r.position.values,i=r.position.values.length/3,n=t.length,s=new Array(i),o=new Array(n/3),u=new Array(n),p=0;p<i;p++)s[p]={indexOffset:0,count:0,currentCount:0};var d=0;for(p=0;p<n;p+=3){var l=t[p],y=t[p+1],f=t[p+2],m=3*l,v=3*y,c=3*f;x.x=a[m],x.y=a[1+m],x.z=a[2+m],P.x=a[v],P.y=a[1+v],P.z=a[2+v],w.x=a[c],w.y=a[1+c],w.z=a[2+c],s[l].count++,s[y].count++,s[f].count++,R.Cartesian3.subtract(P,x,P),R.Cartesian3.subtract(w,x,w),o[d]=R.Cartesian3.cross(P,w,new R.Cartesian3),d++}var C,h=0;for(p=0;p<i;p++)s[p].indexOffset+=h,h+=s[p].count;for(p=d=0;p<n;p+=3)u[(C=s[t[p]]).indexOffset+C.currentCount]=d,C.currentCount++,u[(C=s[t[p+1]]).indexOffset+C.currentCount]=d,C.currentCount++,u[(C=s[t[p+2]]).indexOffset+C.currentCount]=d,C.currentCount++,d++;var b=new Float32Array(3*i);for(p=0;p<i;p++){var g=3*p;if(C=s[p],R.Cartesian3.clone(R.Cartesian3.ZERO,T),0<C.count){for(d=0;d<C.count;d++)R.Cartesian3.add(T,o[u[C.indexOffset+d]],T);R.Cartesian3.equalsEpsilon(R.Cartesian3.ZERO,T,D.CesiumMath.EPSILON10)&&R.Cartesian3.clone(o[u[C.indexOffset]],T)}R.Cartesian3.equalsEpsilon(R.Cartesian3.ZERO,T,D.CesiumMath.EPSILON10)&&(T.z=1),R.Cartesian3.normalize(T,T),b[g]=T.x,b[1+g]=T.y,b[2+g]=T.z}return e.attributes.normal=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:b}),e},new R.Cartesian3),J=new R.Cartesian3,K=new R.Cartesian3,I=(e.computeTangentAndBitangent=function(e){e.attributes;for(var t=e.indices,r=e.attributes.position.values,a=e.attributes.normal.values,i=e.attributes.st.values,n=e.attributes.position.values.length/3,s=t.length,o=new Array(3*n),u=0;u<o.length;u++)o[u]=0;for(u=0;u<s;u+=3){var p,d=t[u],l=t[u+1],y=t[u+2],f=3*l,m=3*y,v=2*d,l=2*l,y=2*y,d=r[p=3*d],c=r[p+1],C=r[p+2],h=i[v],v=i[1+v],b=i[1+l]-v,v=i[1+y]-v,l=1/((i[l]-h)*v-(i[y]-h)*b),y=(v*(r[f]-d)-b*(r[m]-d))*l,h=(v*(r[f+1]-c)-b*(r[m+1]-c))*l,d=(v*(r[f+2]-C)-b*(r[m+2]-C))*l;o[p]+=y,o[p+1]+=h,o[p+2]+=d,o[f]+=y,o[f+1]+=h,o[f+2]+=d,o[m]+=y,o[m+1]+=h,o[m+2]+=d}var g=new Float32Array(3*n),A=new Float32Array(3*n);for(u=0;u<n;u++){f=(p=3*u)+1,m=p+2;var T=R.Cartesian3.fromArray(a,p,j),x=R.Cartesian3.fromArray(o,p,K),P=R.Cartesian3.dot(T,x);R.Cartesian3.multiplyByScalar(T,P,J),R.Cartesian3.normalize(R.Cartesian3.subtract(x,J,x),x),g[p]=x.x,g[f]=x.y,g[m]=x.z,R.Cartesian3.normalize(R.Cartesian3.cross(T,x,x),x),A[p]=x.x,A[f]=x.y,A[m]=x.z}return e.attributes.tangent=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:g}),e.attributes.bitangent=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A}),e},new R.Cartesian2),O=new R.Cartesian3,Q=new R.Cartesian3,$=new R.Cartesian3,E=new R.Cartesian2;function ee(e){switch(e.primitiveType){case G.PrimitiveType.TRIANGLE_FAN:for(var t=e,r=G.Geometry.computeNumberOfVertices(t),a=S.IndexDatatype.createTypedArray(r,3*(r-2)),i=(a[0]=1,a[1]=0,a[2]=2,3),n=3;n<r;++n)a[i++]=n-1,a[i++]=0,a[i++]=n;return t.indices=a,t.primitiveType=G.PrimitiveType.TRIANGLES,t;case G.PrimitiveType.TRIANGLE_STRIP:for(var t=e,s=G.Geometry.computeNumberOfVertices(t),o=S.IndexDatatype.createTypedArray(s,3*(s-2)),u=(o[0]=0,o[1]=1,o[2]=2,3<s&&(o[3]=0,o[4]=2,o[5]=3),6),p=3;p<s-1;p+=2)o[u++]=p,o[u++]=p-1,o[u++]=p+1,p+2<s&&(o[u++]=p,o[u++]=p+1,o[u++]=p+2);return t.indices=o,t.primitiveType=G.PrimitiveType.TRIANGLES,t;case G.PrimitiveType.TRIANGLES:var d=e;if(!V.defined(d.indices)){for(var l=G.Geometry.computeNumberOfVertices(d),y=S.IndexDatatype.createTypedArray(l,l),f=0;f<l;++f)y[f]=f;d.indices=y}return d;case G.PrimitiveType.LINE_STRIP:for(var d=e,m=G.Geometry.computeNumberOfVertices(d),v=S.IndexDatatype.createTypedArray(m,2*(m-1)),c=(v[0]=0,v[1]=1,2),C=2;C<m;++C)v[c++]=C-1,v[c++]=C;return d.indices=v,d.primitiveType=G.PrimitiveType.LINES,d;case G.PrimitiveType.LINE_LOOP:for(var h=e,b=G.Geometry.computeNumberOfVertices(h),g=S.IndexDatatype.createTypedArray(b,2*b),A=(g[0]=0,g[1]=1,2),T=2;T<b;++T)g[A++]=T-1,g[A++]=T;return g[A++]=b-1,g[A]=0,h.indices=g,h.primitiveType=G.PrimitiveType.LINES,h;case G.PrimitiveType.LINES:h=e;if(!V.defined(h.indices)){for(var x=G.Geometry.computeNumberOfVertices(h),P=S.IndexDatatype.createTypedArray(x,x),w=0;w<x;++w)P[w]=w;h.indices=P}return h}}function l(e,t){Math.abs(e.y)<D.CesiumMath.EPSILON6&&(e.y=t?-D.CesiumMath.EPSILON6:D.CesiumMath.EPSILON6)}e.compressVertices=function(e){var t=e.attributes.extrudeDirection;if(V.defined(t)){for(var r=t.values,a=r.length/3,i=new Float32Array(2*a),n=0,s=0;s<a;++s)R.Cartesian3.fromArray(r,3*s,O),R.Cartesian3.equals(O,R.Cartesian3.ZERO)?n+=2:(E=A.AttributeCompression.octEncodeInRange(O,65535,E),i[n++]=E.x,i[n++]=E.y);e.attributes.compressedAttributes=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:i}),delete e.attributes.extrudeDirection}else{var t=e.attributes.normal,o=e.attributes.st,u=V.defined(t),p=V.defined(o);if(u||p){var d,l,y,f,m=e.attributes.tangent,v=e.attributes.bitangent,c=V.defined(m),C=V.defined(v);u&&(d=t.values),p&&(l=o.values),c&&(y=m.values),C&&(f=v.values);var t=a=(u?d:l).length/(u?3:2),o=p&&u?2:1,h=(t*=o+=c||C?1:0,new Float32Array(t)),b=0;for(s=0;s<a;++s){p&&(R.Cartesian2.fromArray(l,2*s,I),h[b++]=A.AttributeCompression.compressTextureCoordinates(I));var g=3*s;u&&V.defined(y)&&V.defined(f)?(R.Cartesian3.fromArray(d,g,O),R.Cartesian3.fromArray(y,g,Q),R.Cartesian3.fromArray(f,g,$),A.AttributeCompression.octPack(O,Q,$,I),h[b++]=I.x,h[b++]=I.y):(u&&(R.Cartesian3.fromArray(d,g,O),h[b++]=A.AttributeCompression.octEncodeFloat(O)),c&&(R.Cartesian3.fromArray(y,g,O),h[b++]=A.AttributeCompression.octEncodeFloat(O)),C&&(R.Cartesian3.fromArray(f,g,O),h[b++]=A.AttributeCompression.octEncodeFloat(O)))}e.attributes.compressedAttributes=new G.GeometryAttribute({componentDatatype:D.ComponentDatatype.FLOAT,componentsPerAttribute:o,values:h}),u&&delete e.attributes.normal,p&&delete e.attributes.st,C&&delete e.attributes.bitangent,c&&delete e.attributes.tangent}}return e};var te=new R.Cartesian3;function y(e,t,r,a){R.Cartesian3.add(e,R.Cartesian3.multiplyByScalar(R.Cartesian3.subtract(t,e,te),e.y/(e.y-t.y),te),r),R.Cartesian3.clone(r,a),l(r,!0),l(a,!1)}var f=new R.Cartesian3,m=new R.Cartesian3,v=new R.Cartesian3,c=new R.Cartesian3,re={positions:new Array(7),indices:new Array(9)};function ae(e,t,r){var a,i,n,s,o,u;if(!(0<=e.x||0<=t.x||0<=r.x))return o=t,a=r,0!==(i=e).y&&0!==o.y&&0!==a.y?(l(i,i.y<0),l(o,o.y<0),l(a,a.y<0)):(u=Math.abs(i.y),s=Math.abs(o.y),n=Math.abs(a.y),l(i,u=(s<u?n<u?D.CesiumMath.sign(i.y):D.CesiumMath.sign(a.y):n<s?D.CesiumMath.sign(o.y):D.CesiumMath.sign(a.y))<0),l(o,u),l(a,u)),i=t.y<0,n=r.y<0,s=0,o=re.indices,1==(s=(s+=(a=e.y<0)?1:0)+(i?1:0)+(n?1:0))?(o[1]=3,o[2]=4,o[5]=6,o[7]=6,o[8]=5,a?(y(e,t,f,v),y(e,r,m,c),o[0]=0,o[3]=1,o[4]=2,o[6]=1):i?(y(t,r,f,v),y(t,e,m,c),o[0]=1,o[3]=2,o[4]=0,o[6]=2):n&&(y(r,e,f,v),y(r,t,m,c),o[0]=2,o[3]=0,o[4]=1,o[6]=0)):2==s&&(o[2]=4,o[4]=4,o[5]=3,o[7]=5,o[8]=6,a?i?n||(y(r,e,f,v),y(r,t,m,c),o[0]=0,o[1]=1,o[3]=0,o[6]=2):(y(t,r,f,v),y(t,e,m,c),o[0]=2,o[1]=0,o[3]=2,o[6]=1):(y(e,t,f,v),y(e,r,m,c),o[0]=1,o[1]=2,o[3]=1,o[6]=0)),(u=re.positions)[0]=e,u[1]=t,u[2]=r,u.length=3,1!=s&&2!=s||(u[3]=f,u[4]=m,u[5]=v,u[6]=c,u.length=7),re}function ie(e,t){var r=e.attributes;if(0!==r.position.values.length){for(var a in r)r.hasOwnProperty(a)&&V.defined(r[a])&&V.defined(r[a].values)&&((a=r[a]).values=D.ComponentDatatype.createTypedArray(a.componentDatatype,a.values));var i=G.Geometry.computeNumberOfVertices(e);return e.indices=S.IndexDatatype.createTypedArray(i,e.indices),t&&(e.boundingSphere=M.BoundingSphere.fromVertices(r.position.values)),e}}function F(e){var t,r,a=e.attributes,i={};for(t in a)a.hasOwnProperty(t)&&V.defined(a[t])&&V.defined(a[t].values)&&(r=a[t],i[t]=new G.GeometryAttribute({componentDatatype:r.componentDatatype,componentsPerAttribute:r.componentsPerAttribute,normalize:r.normalize,values:[]}));return new G.Geometry({attributes:i,indices:[],primitiveType:e.primitiveType})}function ne(e,t,r){var a=V.defined(e.geometry.boundingSphere);t=ie(t,a),r=ie(r,a),V.defined(r)&&!V.defined(t)?e.geometry=r:!V.defined(r)&&V.defined(t)?e.geometry=t:(e.westHemisphereGeometry=t,e.eastHemisphereGeometry=r,e.geometry=void 0)}function se(u,p){var d=new u,l=new u,y=new u;return function(e,t,r,a,i,n,s,o){e=u.fromArray(i,e*p,d),t=u.fromArray(i,t*p,l),i=u.fromArray(i,r*p,y),u.multiplyByScalar(e,a.x,e),u.multiplyByScalar(t,a.y,t),u.multiplyByScalar(i,a.z,i),r=u.add(e,t,e);u.add(r,i,r),o&&u.normalize(r,r),u.pack(r,n,s*p)}}var oe=se(R.Cartesian4,4),N=se(R.Cartesian3,3),ue=se(R.Cartesian2,2),pe=function(e,t,r,a,i,n,s){e=i[e]*a.x;n[s]=e+i[t]*a.y+i[r]*a.z>D.CesiumMath.EPSILON6?1:0},L=new R.Cartesian3,de=new R.Cartesian3,le=new R.Cartesian3,ye=new R.Cartesian3;function B(e,t,r,a,i,n,s,o,u,p,d,l,y,f,m,v){if(V.defined(n)||V.defined(s)||V.defined(o)||V.defined(u)||V.defined(p)||0!==f){var c,C=function(e,t,r,a,i){var n,s,o,u,p,d,l,y;if(V.defined(i)||(i=new R.Cartesian3),V.defined(t.z)){if(R.Cartesian3.equalsEpsilon(e,t,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_X,i);if(R.Cartesian3.equalsEpsilon(e,r,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_Y,i);if(R.Cartesian3.equalsEpsilon(e,a,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_Z,i);n=R.Cartesian3.subtract(r,t,Y),s=R.Cartesian3.subtract(a,t,Z),o=R.Cartesian3.subtract(e,t,H),u=R.Cartesian3.dot(n,n),p=R.Cartesian3.dot(n,s),d=R.Cartesian3.dot(n,o),l=R.Cartesian3.dot(s,s),y=R.Cartesian3.dot(s,o)}else{if(R.Cartesian2.equalsEpsilon(e,t,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_X,i);if(R.Cartesian2.equalsEpsilon(e,r,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_Y,i);if(R.Cartesian2.equalsEpsilon(e,a,D.CesiumMath.EPSILON14))return R.Cartesian3.clone(R.Cartesian3.UNIT_Z,i);n=R.Cartesian2.subtract(r,t,Y),s=R.Cartesian2.subtract(a,t,Z),o=R.Cartesian2.subtract(e,t,H),u=R.Cartesian2.dot(n,n),p=R.Cartesian2.dot(n,s),d=R.Cartesian2.dot(n,o),l=R.Cartesian2.dot(s,s),y=R.Cartesian2.dot(s,o)}if(i.y=l*d-p*y,i.z=u*y-p*d,0!=(r=u*l-p*p))return i.y/=r,i.z/=r,i.x=1-i.y-i.z,i}(a,R.Cartesian3.fromArray(i,3*e,L),R.Cartesian3.fromArray(i,3*t,de),R.Cartesian3.fromArray(i,3*r,le),ye);if(V.defined(C))if(V.defined(n)&&N(e,t,r,C,n,l.normal.values,v,!0),V.defined(p)&&(a=R.Cartesian3.fromArray(p,3*e,L),i=R.Cartesian3.fromArray(p,3*t,de),n=R.Cartesian3.fromArray(p,3*r,le),R.Cartesian3.multiplyByScalar(a,C.x,a),R.Cartesian3.multiplyByScalar(i,C.y,i),R.Cartesian3.multiplyByScalar(n,C.z,n),R.Cartesian3.equals(a,R.Cartesian3.ZERO)&&R.Cartesian3.equals(i,R.Cartesian3.ZERO)&&R.Cartesian3.equals(n,R.Cartesian3.ZERO)?((c=L).x=0,c.y=0,c.z=0):(c=R.Cartesian3.add(a,i,a),R.Cartesian3.add(c,n,c),R.Cartesian3.normalize(c,c)),R.Cartesian3.pack(c,l.extrudeDirection.values,3*v)),V.defined(d)&&pe(e,t,r,C,d,l.applyOffset.values,v),V.defined(s)&&N(e,t,r,C,s,l.tangent.values,v,!0),V.defined(o)&&N(e,t,r,C,o,l.bitangent.values,v,!0),V.defined(u)&&ue(e,t,r,C,u,l.st.values,v),0<f)for(var h=0;h<f;h++){var b=y[h],g=(E=O=I=S=w=P=x=T=A=g=void 0,e),A=t,T=r,x=C,P=v,w=m[b],S=l[b],I=w.componentsPerAttribute,O=w.values,E=S.values;switch(I){case 4:oe(g,A,T,x,O,E,P,!1);break;case 3:N(g,A,T,x,O,E,P,!1);break;case 2:ue(g,A,T,x,O,E,P,!1);break;default:E[P]=O[g]*x.x+O[A]*x.y+O[T]*x.z}}}}function _(e,t,r,a,i,n){var s=e.position.values.length/3;return-1!==i?-1===(i=r[a=a[i]])?(r[a]=s,e.position.values.push(n.x,n.y,n.z),t.push(s),s):(t.push(i),i):(e.position.values.push(n.x,n.y,n.z),t.push(s),s)}var fe={position:!0,normal:!0,bitangent:!0,tangent:!0,st:!0,extrudeDirection:!0,applyOffset:!0};function me(e){var t,r=e.geometry,a=r.attributes,i=a.position.values,n=V.defined(a.normal)?a.normal.values:void 0,s=V.defined(a.bitangent)?a.bitangent.values:void 0,o=V.defined(a.tangent)?a.tangent.values:void 0,u=V.defined(a.st)?a.st.values:void 0,p=V.defined(a.extrudeDirection)?a.extrudeDirection.values:void 0,d=V.defined(a.applyOffset)?a.applyOffset.values:void 0,l=r.indices,y=[];for(t in a)a.hasOwnProperty(t)&&!fe[t]&&V.defined(a[t])&&y.push(t);var f,m,v=y.length,c=F(r),C=F(r),h=[],b=(h.length=i.length/3,[]);for(b.length=i.length/3,A=0;A<h.length;++A)b[A]=h[A]=-1;for(var g=l.length,A=0;A<g;A+=3){var T=l[A],x=l[A+1],P=l[A+2],w=R.Cartesian3.fromArray(i,3*T),S=R.Cartesian3.fromArray(i,3*x),I=R.Cartesian3.fromArray(i,3*P),O=ae(w,S,I);if(V.defined(O)&&3<O.positions.length)for(var E=O.positions,N=O.indices,L=N.length,z=0;z<L;++z){var D=N[z],M=E[D],G=M.y<0?(f=C.attributes,m=C.indices,h):(f=c.attributes,m=c.indices,b);B(T,x,P,M,i,n,o,s,u,p,d,f,y,v,a,_(f,m,G,l,D<3?A+D:-1,M))}else V.defined(O)&&(w=O.positions[0],S=O.positions[1],I=O.positions[2]),G=w.y<0?(f=C.attributes,m=C.indices,h):(f=c.attributes,m=c.indices,b),B(T,x,P,w,i,n,o,s,u,p,d,f,y,v,a,_(f,m,G,l,A,w)),B(T,x,P,S,i,n,o,s,u,p,d,f,y,v,a,_(f,m,G,l,A+1,S)),B(T,x,P,I,i,n,o,s,u,p,d,f,y,v,a,_(f,m,G,l,A+2,I))}ne(e,C,c)}var ve=U.Plane.fromPointNormal(R.Cartesian3.ZERO,R.Cartesian3.UNIT_Y),ce=new R.Cartesian3,Ce=new R.Cartesian3;function z(e,t,r,a,i,n,s){V.defined(s)&&(a=R.Cartesian3.fromArray(a,3*e,L),R.Cartesian3.equalsEpsilon(a,r,D.CesiumMath.EPSILON10)?n.applyOffset.values[i]=s[e]:n.applyOffset.values[i]=s[t])}function he(e){var t,r=e.geometry,a=r.attributes,i=a.position.values,n=V.defined(a.applyOffset)?a.applyOffset.values:void 0,s=r.indices,o=F(r),u=F(r),p=s.length,d=[],l=(d.length=i.length/3,[]);for(l.length=i.length/3,t=0;t<d.length;++t)l[t]=d[t]=-1;for(t=0;t<p;t+=2){var y,f,m,v,c=s[t],C=s[t+1],h=R.Cartesian3.fromArray(i,3*c,L),b=R.Cartesian3.fromArray(i,3*C,de),g=(Math.abs(h.y)<D.CesiumMath.EPSILON6&&(h.y<0?h.y=-D.CesiumMath.EPSILON6:h.y=D.CesiumMath.EPSILON6),Math.abs(b.y)<D.CesiumMath.EPSILON6&&(b.y<0?b.y=-D.CesiumMath.EPSILON6:b.y=D.CesiumMath.EPSILON6),o.attributes),A=o.indices,T=l,x=u.attributes,P=u.indices,w=d,S=q.IntersectionTests.lineSegmentPlane(h,b,ve,le);V.defined(S)?(y=R.Cartesian3.multiplyByScalar(R.Cartesian3.UNIT_Y,5*D.CesiumMath.EPSILON9,ce),h.y<0&&(R.Cartesian3.negate(y,y),g=u.attributes,A=u.indices,T=d,x=o.attributes,P=o.indices,w=l),f=R.Cartesian3.add(S,y,Ce),z(c,C,h,i,_(g,A,T,s,t,h),g,n),z(c,C,f,i,_(g,A,T,s,-1,f),g,n),R.Cartesian3.negate(y,y),R.Cartesian3.add(S,y,f),z(c,C,f,i,_(x,P,w,s,-1,f),x,n),z(c,C,b,i,_(x,P,w,s,t+1,b),x,n)):(A=h.y<0?(m=u.attributes,v=u.indices,d):(m=o.attributes,v=o.indices,l),z(c,C,h,i,_(m,v,A,s,t,h),m,n),z(c,C,b,i,_(m,v,A,s,t+1,b),m,n))}ne(e,u,o)}var be=new R.Cartesian2,ge=new R.Cartesian2,Ae=new R.Cartesian3,Te=new R.Cartesian3,xe=new R.Cartesian3,Pe=new R.Cartesian3,we=new R.Cartesian3,Se=new R.Cartesian3,Ie=new R.Cartesian4;function Oe(e){for(var e=e.attributes,t=e.position.values,r=e.prevPosition.values,a=e.nextPosition.values,i=t.length,n=0;n<i;n+=3){var s,o=R.Cartesian3.unpack(t,n,Ae);0<o.x||(s=R.Cartesian3.unpack(r,n,Te),(o.y<0&&0<s.y||0<o.y&&s.y<0)&&(0<n-3?(r[n]=t[n-3],r[n+1]=t[n-2],r[n+2]=t[n-1]):R.Cartesian3.pack(o,r,n)),s=R.Cartesian3.unpack(a,n,xe),(o.y<0&&0<s.y||0<o.y&&s.y<0)&&(n+3<i?(a[n]=t[n+3],a[n+1]=t[n+4],a[n+2]=t[n+5]):R.Cartesian3.pack(o,a,n)))}}var Ee=5*D.CesiumMath.EPSILON9,k=D.CesiumMath.EPSILON6;e.splitLongitude=function(e){var t=e.geometry,r=t.boundingSphere;if(V.defined(r)&&(0<r.center.x-r.radius||M.BoundingSphere.intersectPlane(r,U.Plane.ORIGIN_ZX_PLANE)!==M.Intersect.INTERSECTING))return e;if(t.geometryType!==G.GeometryType.NONE)switch(t.geometryType){case G.GeometryType.POLYLINES:for(var a=e,i=a.geometry,n=i.attributes,s=n.position.values,o=n.prevPosition.values,u=n.nextPosition.values,p=n.expandAndWidth.values,d=V.defined(n.st)?n.st.values:void 0,l=V.defined(n.color)?n.color.values:void 0,y=F(i),f=F(i),m=!1,v=s.length/3,c=0;c<v;c+=4){var C=c,h=c+2,b=R.Cartesian3.fromArray(s,3*C,Ae),g=R.Cartesian3.fromArray(s,3*h,Te);if(Math.abs(b.y)<k)for(b.y=k*(g.y<0?-1:1),s[3*c+1]=b.y,s[3*(c+1)+1]=b.y,L=3*C;L<3*C+12;L+=3)o[L]=s[3*c],o[L+1]=s[3*c+1],o[L+2]=s[3*c+2];if(Math.abs(g.y)<k)for(g.y=k*(b.y<0?-1:1),s[3*(c+2)+1]=g.y,s[3*(c+3)+1]=g.y,L=3*C;L<3*C+12;L+=3)u[L]=s[3*(c+2)],u[L+1]=s[3*(c+2)+1],u[L+2]=s[3*(c+2)+2];var A=y.attributes,T=y.indices,x=f.attributes,P=f.indices,w=q.IntersectionTests.lineSegmentPlane(b,g,ve,Pe);if(V.defined(w)){var m=!0,S=R.Cartesian3.multiplyByScalar(R.Cartesian3.UNIT_Y,Ee,we),I=(b.y<0&&(R.Cartesian3.negate(S,S),A=f.attributes,T=f.indices,x=y.attributes,P=y.indices),R.Cartesian3.add(w,S,Se)),S=(A.position.values.push(b.x,b.y,b.z,b.x,b.y,b.z),A.position.values.push(I.x,I.y,I.z),A.position.values.push(I.x,I.y,I.z),A.prevPosition.values.push(o[3*C],o[3*C+1],o[3*C+2]),A.prevPosition.values.push(o[3*C+3],o[3*C+4],o[3*C+5]),A.prevPosition.values.push(b.x,b.y,b.z,b.x,b.y,b.z),A.nextPosition.values.push(I.x,I.y,I.z),A.nextPosition.values.push(I.x,I.y,I.z),A.nextPosition.values.push(I.x,I.y,I.z),A.nextPosition.values.push(I.x,I.y,I.z),R.Cartesian3.negate(S,S),R.Cartesian3.add(w,S,I),x.position.values.push(I.x,I.y,I.z),x.position.values.push(I.x,I.y,I.z),x.position.values.push(g.x,g.y,g.z,g.x,g.y,g.z),x.prevPosition.values.push(I.x,I.y,I.z),x.prevPosition.values.push(I.x,I.y,I.z),x.prevPosition.values.push(I.x,I.y,I.z),x.prevPosition.values.push(I.x,I.y,I.z),x.nextPosition.values.push(g.x,g.y,g.z,g.x,g.y,g.z),x.nextPosition.values.push(u[3*h],u[3*h+1],u[3*h+2]),x.nextPosition.values.push(u[3*h+3],u[3*h+4],u[3*h+5]),R.Cartesian2.fromArray(p,2*C,be)),I=Math.abs(S.y),S=(A.expandAndWidth.values.push(-1,I,1,I),A.expandAndWidth.values.push(-1,-I,1,-I),x.expandAndWidth.values.push(-1,I,1,I),x.expandAndWidth.values.push(-1,-I,1,-I),R.Cartesian3.magnitudeSquared(R.Cartesian3.subtract(w,b,xe)));if(S/=R.Cartesian3.magnitudeSquared(R.Cartesian3.subtract(g,b,xe)),V.defined(l)){for(var I=R.Cartesian4.fromArray(l,4*C,Ie),w=R.Cartesian4.fromArray(l,4*h,Ie),O=D.CesiumMath.lerp(I.x,w.x,S),E=D.CesiumMath.lerp(I.y,w.y,S),N=D.CesiumMath.lerp(I.z,w.z,S),I=D.CesiumMath.lerp(I.w,w.w,S),L=4*C;L<4*C+8;++L)A.color.values.push(l[L]);for(A.color.values.push(O,E,N,I),A.color.values.push(O,E,N,I),x.color.values.push(O,E,N,I),x.color.values.push(O,E,N,I),L=4*h;L<4*h+8;++L)x.color.values.push(l[L])}if(V.defined(d)){w=R.Cartesian2.fromArray(d,2*C,be),O=R.Cartesian2.fromArray(d,2*(c+3),ge),E=D.CesiumMath.lerp(w.x,O.x,S);for(L=2*C;L<2*C+4;++L)A.st.values.push(d[L]);for(A.st.values.push(E,w.y),A.st.values.push(E,O.y),x.st.values.push(E,w.y),x.st.values.push(E,O.y),L=2*h;L<2*h+4;++L)x.st.values.push(d[L])}N=A.position.values.length/3-4,T.push(N,N+2,N+1),T.push(N+1,N+2,N+3),N=x.position.values.length/3-4,P.push(N,N+2,N+1),P.push(N+1,N+2,N+3)}else{var z,I=(b.y<0?(z=f.attributes,f):(z=y.attributes,y)).indices;for(z.position.values.push(b.x,b.y,b.z),z.position.values.push(b.x,b.y,b.z),z.position.values.push(g.x,g.y,g.z),z.position.values.push(g.x,g.y,g.z),L=3*c;L<3*c+12;++L)z.prevPosition.values.push(o[L]),z.nextPosition.values.push(u[L]);for(L=2*c;L<2*c+8;++L)z.expandAndWidth.values.push(p[L]),V.defined(d)&&z.st.values.push(d[L]);if(V.defined(l))for(L=4*c;L<4*c+16;++L)z.color.values.push(l[L]);N=z.position.values.length/3-4,I.push(N,N+2,N+1),I.push(N+1,N+2,N+3)}}m&&(Oe(f),Oe(y)),ne(a,f,y);break;case G.GeometryType.TRIANGLES:me(e);break;case G.GeometryType.LINES:he(e)}else ee(t),t.primitiveType===G.PrimitiveType.TRIANGLES?me(e):t.primitiveType===G.PrimitiveType.LINES&&he(e);return e},t.GeometryPipeline=e});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./when-ae2e0b60","./RuntimeError-24b14c10","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18"],function(a,w,f,t,c,R){var v={};function s(a,t,e){var n=a+t;return R.CesiumMath.sign(a)!==R.CesiumMath.sign(t)&&Math.abs(n/Math.max(Math.abs(a),Math.abs(t)))<e?0:n}v.computeDiscriminant=function(a,t,e){return t*t-4*a*e},v.computeRealRoots=function(a,t,e){var n,r,i;return 0===a?0===t?[]:[-e/t]:0===t?0===e||(r=Math.abs(e))<(i=Math.abs(a))&&r/i<R.CesiumMath.EPSILON14?[0,0]:i<r&&i/r<R.CesiumMath.EPSILON14||(n=-e/a)<0?[]:[-(i=Math.sqrt(n)),i]:0===e?(n=-t/a)<0?[n,0]:[0,n]:(r=s(t*t,-(4*a*e),R.CesiumMath.EPSILON14))<0?[]:(i=-.5*s(t,R.CesiumMath.sign(t)*Math.sqrt(r),R.CesiumMath.EPSILON14),0<t?[i/a,e/i]:[e/i,i/a])};var d={};function o(a,t,e,n){var r,i,s,o,u,t=t/3,e=e/3,C=a*e,c=t*n,l=t*t,h=e*e,M=a*e-l,m=a*n-t*e,d=t*n-h,f=4*M*d-m*m;return f<0?(u=(u=(r=(o=-((i=C*h<=l*c?-2*t*(s=M)+(o=a)*m:-(o=n)*m+2*e*(s=d))<0?-1:1)*Math.abs(o)*Math.sqrt(-f))-i)/2)<0?-Math.pow(-u,1/3):Math.pow(u,1/3),o=r===o?-u:-s/u,i=s<=0?u+o:-i/(u*u+o*o+s),C*h<=l*c?[(i-t)/a]:[-n/(i+e)]):(o=-2*t*(u=M)+a*m,C=-n*m+2*e*(s=d),h=Math.sqrt(f),l=Math.sqrt(3)/2,c=Math.abs(Math.atan2(a*h,-o)/3),o=(d=2*t<(r=(i=2*Math.sqrt(-u))*(M=Math.cos(c)))+(m=i*(-M/2-l*Math.sin(c)))?r-t:m-t)/(f=a),c=Math.abs(Math.atan2(n*h,-C)/3),h=(u=-n)/(a=(r=(i=2*Math.sqrt(-s))*(M=Math.cos(c)))+(m=i*(-M/2-l*Math.sin(c)))<2*e?r+e:m+e),o<=(n=(e*(C=-d*a-f*u)-t*(d*u))/(-t*C+e*(f*a)))?o<=h?n<=h?[o,n,h]:[o,h,n]:[h,o,n]:o<=h?[n,o,h]:n<=h?[n,h,o]:[h,n,o])}d.computeDiscriminant=function(a,t,e,n){var r=t*t,i=e*e;return 18*a*t*e*n+r*i-27*(a*a)*(n*n)-4*(a*i*e+r*t*n)},d.computeRealRoots=function(a,t,e,n){var r,i,s;return 0===a?v.computeRealRoots(t,e,n):0===t?0===e?0===n?[0,0,0]:[s=(i=-n/a)<0?-Math.pow(-i,1/3):Math.pow(i,1/3),s,s]:0===n?0===(r=v.computeRealRoots(a,0,e)).Length?[0]:[r[0],0,r[1]]:o(a,0,e,n):0===e?0===n?(i=-t/a)<0?[i,0,0]:[0,0,i]:o(a,t,0,n):0===n?0===(r=v.computeRealRoots(a,t,e)).length?[0]:r[1]<=0?[r[0],r[1],0]:0<=r[0]?[0,r[0],r[1]]:[r[0],0,r[1]]:o(a,t,e,n)};var S={};function C(a,t,e,n){var r=a*a,i=t-3*r/8,s=e-t*a/2+r*a/8,n=n-e*a/4+t*r/16-3*r*r/256,e=d.computeRealRoots(1,2*i,i*i-4*n,-s*s);if(0<e.length){t=-a/4,r=e[e.length-1];if(Math.abs(r)<R.CesiumMath.EPSILON14){var a=v.computeRealRoots(1,i,n);if(2===a.length){var o,u,e=a[0],n=a[1];if(0<=e&&0<=n)return a=Math.sqrt(e),[t-(u=Math.sqrt(n)),t-a,t+a,t+u];if(0<=e&&n<0)return[t-(o=Math.sqrt(e)),t+o];if(e<0&&0<=n)return[t-(o=Math.sqrt(n)),t+o]}return[]}if(0<r)return u=(i+r+s/(a=Math.sqrt(r)))/2,e=v.computeRealRoots(1,a,(i+r-s/a)/2),n=v.computeRealRoots(1,-a,u),0!==e.length?(e[0]+=t,e[1]+=t,0!==n.length?(n[0]+=t,n[1]+=t,e[1]<=n[0]?[e[0],e[1],n[0],n[1]]:n[1]<=e[0]?[n[0],n[1],e[0],e[1]]:e[0]>=n[0]&&e[1]<=n[1]?[n[0],e[0],e[1],n[1]]:n[0]>=e[0]&&n[1]<=e[1]?[e[0],n[0],n[1],e[1]]:e[0]>n[0]&&e[0]<n[1]?[n[0],e[0],n[1],e[1]]:[e[0],n[0],e[1],n[1]]):e):0!==n.length?(n[0]+=t,n[1]+=t,n):[]}return[]}function l(a,t,e,n){var r=a*a,i=d.computeRealRoots(1,-2*t,e*a+t*t-4*n,r*n-e*t*a+e*e);if(0<i.length){var s,o,u,C,c,i=i[0],t=t-i,l=t*t,h=a/2,t=t/2,M=l-4*n,l=l+4*Math.abs(n),m=r-4*i,r=r+4*Math.abs(i),r=(m=i<0||M*r<m*l?(s=(r=Math.sqrt(m))/2,0===r?0:(a*t-e)/r):(s=0===(l=Math.sqrt(M))?0:(a*t-e)/l,l/2),0==h&&0===s?u=o=0:R.CesiumMath.sign(h)===R.CesiumMath.sign(s)?u=i/(o=h+s):o=i/(u=h-s),0==t&&0===m?c=C=0:R.CesiumMath.sign(t)===R.CesiumMath.sign(m)?c=n/(C=t+m):C=n/(c=t-m),v.computeRealRoots(1,o,C)),M=v.computeRealRoots(1,u,c);if(0!==r.length)return 0!==M.length?r[1]<=M[0]?[r[0],r[1],M[0],M[1]]:M[1]<=r[0]?[M[0],M[1],r[0],r[1]]:r[0]>=M[0]&&r[1]<=M[1]?[M[0],r[0],r[1],M[1]]:M[0]>=r[0]&&M[1]<=r[1]?[r[0],M[0],M[1],r[1]]:r[0]>M[0]&&r[0]<M[1]?[M[0],r[0],M[1],r[1]]:[r[0],M[0],r[1],M[1]]:r;if(0!==M.length)return M}return[]}function e(a,t){t=w.Cartesian3.clone(f.defaultValue(t,w.Cartesian3.ZERO)),w.Cartesian3.equals(t,w.Cartesian3.ZERO)||w.Cartesian3.normalize(t,t),this.origin=w.Cartesian3.clone(f.defaultValue(a,w.Cartesian3.ZERO)),this.direction=t}S.computeDiscriminant=function(a,t,e,n,r){var i=a*a,s=t*t,o=s*t,u=e*e,C=u*e,c=n*n,l=c*n,h=r*r;return s*u*c-4*o*l-4*a*C*c+18*a*t*e*l-27*i*c*c+256*(i*a)*(h*r)+r*(18*o*e*n-4*s*C+16*a*u*u-80*a*t*u*n-6*a*s*c+144*i*e*c)+h*(144*a*s*e-27*s*s-128*i*u-192*i*t*n)},S.computeRealRoots=function(a,t,e,n,r){if(Math.abs(a)<R.CesiumMath.EPSILON15)return d.computeRealRoots(t,e,n,r);var i=t/a,s=e/a,o=n/a,u=r/a,t=i<0?1:0;switch(t=(t=(t+=s<0?1+t:t)+(o<0?1+t:t))+(u<0?1+t:t)){case 0:return C(i,s,o,u);case 1:case 2:return l(i,s,o,u);case 3:case 4:return C(i,s,o,u);case 5:return l(i,s,o,u);case 6:case 7:return C(i,s,o,u);case 8:return l(i,s,o,u);case 9:case 10:return C(i,s,o,u);case 11:return l(i,s,o,u);case 12:case 13:case 14:case 15:return C(i,s,o,u);default:return}},e.clone=function(a,t){if(f.defined(a))return f.defined(t)?(t.origin=w.Cartesian3.clone(a.origin),t.direction=w.Cartesian3.clone(a.direction),t):new e(a.origin,a.direction)},e.getPoint=function(a,t,e){return f.defined(e)||(e=new w.Cartesian3),e=w.Cartesian3.multiplyByScalar(a.direction,t,e),w.Cartesian3.add(a.origin,e,e)};var h={rayPlane:function(a,t,e){f.defined(e)||(e=new w.Cartesian3);var n=a.origin,a=a.direction,r=t.normal,i=w.Cartesian3.dot(r,a);if(!(Math.abs(i)<R.CesiumMath.EPSILON15)){t=(-t.distance-w.Cartesian3.dot(r,n))/i;if(!(t<0))return e=w.Cartesian3.multiplyByScalar(a,t,e),w.Cartesian3.add(n,e,e)}}},M=new w.Cartesian3,m=new w.Cartesian3,g=new w.Cartesian3,p=new w.Cartesian3,O=new w.Cartesian3,u=(h.rayTriangleParametric=function(a,t,e,n,r){r=f.defaultValue(r,!1);var i,s,o,u=a.origin,a=a.direction,e=w.Cartesian3.subtract(e,t,M),n=w.Cartesian3.subtract(n,t,m),C=w.Cartesian3.cross(a,n,g),c=w.Cartesian3.dot(e,C);if(r){if(c<R.CesiumMath.EPSILON6)return;if(h=w.Cartesian3.subtract(u,t,p),(l=w.Cartesian3.dot(h,C))<0||c<l)return;if(i=w.Cartesian3.cross(h,e,O),(s=w.Cartesian3.dot(a,i))<0||c<l+s)return;o=w.Cartesian3.dot(n,i)/c}else{if(Math.abs(c)<R.CesiumMath.EPSILON6)return;var l,r=1/c,h=w.Cartesian3.subtract(u,t,p);if((l=w.Cartesian3.dot(h,C)*r)<0||1<l)return;if(i=w.Cartesian3.cross(h,e,O),(s=w.Cartesian3.dot(a,i)*r)<0||1<l+s)return;o=w.Cartesian3.dot(n,i)*r}return o},h.rayTriangle=function(a,t,e,n,r,i){t=h.rayTriangleParametric(a,t,e,n,r);if(f.defined(t)&&!(t<0))return f.defined(i)||(i=new w.Cartesian3),w.Cartesian3.multiplyByScalar(a.direction,t,i),w.Cartesian3.add(a.origin,i,i)},new e);h.lineSegmentTriangle=function(a,t,e,n,r,i,s){var o=u,e=(w.Cartesian3.clone(a,o.origin),w.Cartesian3.subtract(t,a,o.direction),w.Cartesian3.normalize(o.direction,o.direction),h.rayTriangleParametric(o,e,n,r,i));if(!(!f.defined(e)||e<0||e>w.Cartesian3.distance(a,t)))return f.defined(s)||(s=new w.Cartesian3),w.Cartesian3.multiplyByScalar(o.direction,e,s),w.Cartesian3.add(o.origin,s,s)};var i={root0:0,root1:0};function x(a,t,e){f.defined(e)||(e=new c.Interval);var n=a.origin,a=a.direction,r=t.center,t=t.radius*t.radius,n=w.Cartesian3.subtract(n,r,g),r=function(a,t,e,n){var r,i,e=t*t-4*a*e;if(!(e<0))return 0<e?(i=1/(2*a),(r=(-t+(e=Math.sqrt(e)))*i)<(e=(-t-e)*i)?(n.root0=r,n.root1=e):(n.root0=e,n.root1=r),n):0!=(i=-t/(2*a))?(n.root0=n.root1=i,n):void 0}(w.Cartesian3.dot(a,a),2*w.Cartesian3.dot(a,n),w.Cartesian3.magnitudeSquared(n)-t,i);if(f.defined(r))return e.start=r.root0,e.stop=r.root1,e}h.raySphere=function(a,t,e){if(e=x(a,t,e),f.defined(e)&&!(e.stop<0))return e.start=Math.max(e.start,0),e};var y=new e,P=(h.lineSegmentSphere=function(a,t,e,n){var r=y,t=(w.Cartesian3.clone(a,r.origin),w.Cartesian3.subtract(t,a,r.direction)),a=w.Cartesian3.magnitude(t);if(w.Cartesian3.normalize(t,t),n=x(r,e,n),!(!f.defined(n)||n.stop<0||n.start>a))return n.start=Math.max(n.start,0),n.stop=Math.min(n.stop,a),n},new w.Cartesian3),b=new w.Cartesian3;function N(a,t,e){var n=a+t;return R.CesiumMath.sign(a)!==R.CesiumMath.sign(t)&&Math.abs(n/Math.max(Math.abs(a),Math.abs(t)))<e?0:n}h.rayEllipsoid=function(a,t){var e,n,r,i,s,o,u,t=t.oneOverRadii,C=w.Cartesian3.multiplyComponents(t,a.origin,P),t=w.Cartesian3.multiplyComponents(t,a.direction,b),a=w.Cartesian3.magnitudeSquared(C),C=w.Cartesian3.dot(C,t);return 1<a?0<=C||(e=a-1,(o=C*C)<(r=(n=w.Cartesian3.magnitudeSquared(t))*e))?void 0:r<o?(i=C*C-r,(o=(s=-C+Math.sqrt(i))/n)<(u=e/s)?new c.Interval(o,u):{start:u,stop:o}):(u=Math.sqrt(e/n),new c.Interval(u,u)):a<1?(e=a-1,i=C*C-(r=(n=w.Cartesian3.magnitudeSquared(t))*e),s=-C+Math.sqrt(i),new c.Interval(0,s/n)):C<0?(n=w.Cartesian3.magnitudeSquared(t),new c.Interval(0,-C/n)):void 0};var q=new w.Cartesian3,L=new w.Cartesian3,I=new w.Cartesian3,E=new w.Cartesian3,z=new w.Cartesian3,T=new w.Matrix3,U=new w.Matrix3,Z=new w.Matrix3,D=new w.Matrix3,A=new w.Matrix3,W=new w.Matrix3,B=new w.Matrix3,V=new w.Cartesian3,F=new w.Cartesian3,G=new w.Cartographic,Y=(h.grazingAltitudeLocation=function(a,t){var e=a.origin,n=a.direction;if(!w.Cartesian3.equals(e,w.Cartesian3.ZERO)){var r=t.geodeticSurfaceNormal(e,q);if(0<=w.Cartesian3.dot(n,r))return e}var r=f.defined(this.rayEllipsoid(a,t)),a=t.transformPositionToScaledSpace(n,q),i=w.Cartesian3.normalize(a,a),a=w.Cartesian3.mostOrthogonalAxis(a,E),a=w.Cartesian3.normalize(w.Cartesian3.cross(a,i,L),L),s=w.Cartesian3.normalize(w.Cartesian3.cross(i,a,I),I),o=T,i=(o[0]=i.x,o[1]=i.y,o[2]=i.z,o[3]=a.x,o[4]=a.y,o[5]=a.z,o[6]=s.x,o[7]=s.y,o[8]=s.z,w.Matrix3.transpose(o,U)),u=w.Matrix3.fromScale(t.radii,Z),a=w.Matrix3.fromScale(t.oneOverRadii,D),s=A,i=(s[0]=0,s[1]=-n.z,s[2]=n.y,s[3]=n.z,s[4]=0,s[5]=-n.x,s[6]=-n.y,s[7]=n.x,s[8]=0,w.Matrix3.multiply(w.Matrix3.multiply(i,a,W),s,W)),a=w.Matrix3.multiply(w.Matrix3.multiply(i,u,B),o,B),s=w.Matrix3.multiplyByVector(i,e,z),C=function(a,t,e,n,r){var i,s=n*n,o=r*r,u=(a[w.Matrix3.COLUMN1ROW1]-a[w.Matrix3.COLUMN2ROW2])*o,C=r*(n*N(a[w.Matrix3.COLUMN1ROW0],a[w.Matrix3.COLUMN0ROW1],R.CesiumMath.EPSILON15)+t.y),c=a[w.Matrix3.COLUMN0ROW0]*s+a[w.Matrix3.COLUMN2ROW2]*o+n*t.x+e,l=o*N(a[w.Matrix3.COLUMN2ROW1],a[w.Matrix3.COLUMN1ROW2],R.CesiumMath.EPSILON15),h=r*(n*N(a[w.Matrix3.COLUMN2ROW0],a[w.Matrix3.COLUMN0ROW2])+t.z),M=[];if(0==h&&0==l)0!==(i=v.computeRealRoots(u,C,c)).length&&(s=i[0],e=Math.sqrt(Math.max(1-s*s,0)),M.push(new w.Cartesian3(n,r*s,r*-e)),M.push(new w.Cartesian3(n,r*s,r*e)),2===i.length)&&(o=i[1],a=Math.sqrt(Math.max(1-o*o,0)),M.push(new w.Cartesian3(n,r*o,r*-a)),M.push(new w.Cartesian3(n,r*o,r*a)));else{t=h*h,s=l*l,e=h*l,o=u*u+s,a=2*(C*u+e),s=2*c*u+C*C-s+t,e=2*(c*C-e),t=c*c-t;if(0!=o||0!=a||0!=s||0!=e){var m=(i=S.computeRealRoots(o,a,s,e,t)).length;if(0!==m)for(var d=0;d<m;++d){var f=i[d],g=f*f,p=Math.max(1-g,0),p=Math.sqrt(p),g=R.CesiumMath.sign(u)===R.CesiumMath.sign(c)?N(u*g+c,C*f,R.CesiumMath.EPSILON12):R.CesiumMath.sign(c)===R.CesiumMath.sign(C*f)?N(u*g,C*f+c,R.CesiumMath.EPSILON12):N(u*g+C*f,c,R.CesiumMath.EPSILON12),g=g*N(l*f,h,R.CesiumMath.EPSILON15);g<0?M.push(new w.Cartesian3(n,r*f,r*p)):0<g?M.push(new w.Cartesian3(n,r*f,r*-p)):0!==p?(M.push(new w.Cartesian3(n,r*f,r*-p)),M.push(new w.Cartesian3(n,r*f,r*p)),++d):M.push(new w.Cartesian3(n,r*f,r*p))}}}return M}(a,w.Cartesian3.negate(s,q),0,0,1),c=C.length;if(0<c){for(var l=w.Cartesian3.clone(w.Cartesian3.ZERO,F),h=Number.NEGATIVE_INFINITY,M=0;M<c;++M){var m=w.Matrix3.multiplyByVector(u,w.Matrix3.multiplyByVector(o,C[M],V),V),d=w.Cartesian3.normalize(w.Cartesian3.subtract(m,e,E),E),d=w.Cartesian3.dot(d,n);h<d&&(h=d,l=w.Cartesian3.clone(m,l))}i=t.cartesianToCartographic(l,G),h=R.CesiumMath.clamp(h,0,1),a=w.Cartesian3.magnitude(w.Cartesian3.subtract(l,e,E))*Math.sqrt(1-h*h);return i.height=r?-a:a,t.cartographicToCartesian(i,new w.Cartesian3)}},new w.Cartesian3);h.lineSegmentPlane=function(a,t,e,n){f.defined(n)||(n=new w.Cartesian3);var t=w.Cartesian3.subtract(t,a,Y),r=e.normal,i=w.Cartesian3.dot(r,t);if(!(Math.abs(i)<R.CesiumMath.EPSILON6)){r=w.Cartesian3.dot(r,a),e=-(e.distance+r)/i;if(!(e<0||1<e))return w.Cartesian3.multiplyByScalar(t,e,n),w.Cartesian3.add(a,n,n),n}},h.trianglePlaneIntersection=function(a,t,e,n){var r,i,s=n.normal,o=n.distance,u=w.Cartesian3.dot(s,a)+o<0,C=w.Cartesian3.dot(s,t)+o<0,s=w.Cartesian3.dot(s,e)+o<0,o=0;if(1!=(o=(o+=u?1:0)+(C?1:0)+(s?1:0))&&2!=o||(r=new w.Cartesian3,i=new w.Cartesian3),1==o){if(u)return h.lineSegmentPlane(a,t,n,r),h.lineSegmentPlane(a,e,n,i),{positions:[a,t,e,r,i],indices:[0,3,4,1,2,4,1,4,3]};if(C)return h.lineSegmentPlane(t,e,n,r),h.lineSegmentPlane(t,a,n,i),{positions:[a,t,e,r,i],indices:[1,3,4,2,0,4,2,4,3]};if(s)return h.lineSegmentPlane(e,a,n,r),h.lineSegmentPlane(e,t,n,i),{positions:[a,t,e,r,i],indices:[2,3,4,0,1,4,0,4,3]}}else if(2==o){if(!u)return h.lineSegmentPlane(t,a,n,r),h.lineSegmentPlane(e,a,n,i),{positions:[a,t,e,r,i],indices:[1,2,4,1,4,3,0,3,4]};if(!C)return h.lineSegmentPlane(e,t,n,r),h.lineSegmentPlane(a,t,n,i),{positions:[a,t,e,r,i],indices:[2,0,4,2,4,3,1,3,4]};if(!s)return h.lineSegmentPlane(a,e,n,r),h.lineSegmentPlane(t,e,n,i),{positions:[a,t,e,r,i],indices:[0,1,4,0,4,3,2,3,4]}}},a.IntersectionTests=h,a.Ray=e});
@@ -0,0 +1 @@
1
+ define(["exports","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./EllipsoidTangentPlane-4a503a7a","./ComponentDatatype-b7b5db18","./Plane-43337cee"],function(a,l,b,t,O,w,y,N){function P(a,t){this.center=b.Cartesian3.clone(O.defaultValue(a,b.Cartesian3.ZERO)),this.halfAxes=b.Matrix3.clone(O.defaultValue(t,b.Matrix3.ZERO))}P.packedLength=b.Cartesian3.packedLength+b.Matrix3.packedLength,P.pack=function(a,t,e){return e=O.defaultValue(e,0),b.Cartesian3.pack(a.center,t,e),b.Matrix3.pack(a.halfAxes,t,e+b.Cartesian3.packedLength),t},P.unpack=function(a,t,e){return t=O.defaultValue(t,0),O.defined(e)||(e=new P),b.Cartesian3.unpack(a,t,e.center),b.Matrix3.unpack(a,t+b.Cartesian3.packedLength,e.halfAxes),e};var T=new b.Cartesian3,A=new b.Cartesian3,I=new b.Cartesian3,R=new b.Cartesian3,E=new b.Cartesian3,S=new b.Cartesian3,U=new b.Matrix3,L={unitary:new b.Matrix3,diagonal:new b.Matrix3},m=(P.fromPoints=function(a,t){if(O.defined(t)||(t=new P),O.defined(a)&&0!==a.length){for(var e=a.length,n=b.Cartesian3.clone(a[0],T),r=1;r<e;r++)b.Cartesian3.add(n,a[r],n);var i,s=1/e,o=(b.Cartesian3.multiplyByScalar(n,s,n),0),C=0,c=0,u=0,d=0,l=0;for(r=0;r<e;r++)o+=(i=b.Cartesian3.subtract(a[r],n,A)).x*i.x,C+=i.x*i.y,c+=i.x*i.z,u+=i.y*i.y,d+=i.y*i.z,l+=i.z*i.z;C*=s,c*=s,u*=s,d*=s,l*=s;var h=U,s=(h[0]=o*=s,h[1]=C,h[2]=c,h[3]=C,h[4]=u,h[5]=d,h[6]=c,h[7]=d,h[8]=l,b.Matrix3.computeEigenDecomposition(h,L)),h=b.Matrix3.clone(s.unitary,t.halfAxes),x=b.Matrix3.getColumn(h,0,R),m=b.Matrix3.getColumn(h,1,E),M=b.Matrix3.getColumn(h,2,S),f=-Number.MAX_VALUE,p=-Number.MAX_VALUE,g=-Number.MAX_VALUE,w=Number.MAX_VALUE,y=Number.MAX_VALUE,N=Number.MAX_VALUE;for(r=0;r<e;r++)i=a[r],f=Math.max(b.Cartesian3.dot(x,i),f),p=Math.max(b.Cartesian3.dot(m,i),p),g=Math.max(b.Cartesian3.dot(M,i),g),w=Math.min(b.Cartesian3.dot(x,i),w),y=Math.min(b.Cartesian3.dot(m,i),y),N=Math.min(b.Cartesian3.dot(M,i),N);x=b.Cartesian3.multiplyByScalar(x,.5*(w+f),x),m=b.Cartesian3.multiplyByScalar(m,.5*(y+p),m),M=b.Cartesian3.multiplyByScalar(M,.5*(N+g),M),s=b.Cartesian3.add(x,m,t.center),h=(b.Cartesian3.add(s,M,s),I);h.x=f-w,h.y=p-y,h.z=g-N,b.Cartesian3.multiplyByScalar(h,.5,h),b.Matrix3.multiplyByScale(t.halfAxes,h,t.halfAxes)}else t.halfAxes=b.Matrix3.ZERO,t.center=b.Cartesian3.ZERO;return t},new b.Cartesian3),h=new b.Cartesian3;function z(a,t,e,n,r,i,s,o,C,c,u){var d=(u=O.defined(u)?u:new P).halfAxes;b.Matrix3.setColumn(d,0,t,d),b.Matrix3.setColumn(d,1,e,d),b.Matrix3.setColumn(d,2,n,d);(t=m).x=(r+i)/2,t.y=(s+o)/2,t.z=(C+c)/2;e=h,e.x=(i-r)/2,e.y=(o-s)/2,e.z=(c-C)/2,n=u.center,t=b.Matrix3.multiplyByVector(d,t,t);return b.Cartesian3.add(a,t,n),b.Matrix3.multiplyByScale(d,e,d),u}var B=new b.Cartographic,V=new b.Cartesian3,_=new b.Cartographic,v=new b.Cartographic,k=new b.Cartographic,W=new b.Cartographic,D=new b.Cartographic,X=new b.Cartesian3,q=new b.Cartesian3,j=new b.Cartesian3,Z=new b.Cartesian3,Y=new b.Cartesian3,G=new b.Cartesian2,F=new b.Cartesian2,H=new b.Cartesian2,J=new b.Cartesian2,K=new b.Cartesian2,Q=new b.Cartesian3,$=new b.Cartesian3,aa=new b.Cartesian3,ta=new b.Cartesian3,ea=new b.Cartesian2,na=new b.Cartesian3,ra=new b.Cartesian3,ia=new b.Cartesian3,sa=new N.Plane(b.Cartesian3.UNIT_X,0),M=(P.fromRectangle=function(a,t,e,n,r){var i,s,o,C,c;if(t=O.defaultValue(t,0),e=O.defaultValue(e,0),n=O.defaultValue(n,b.Ellipsoid.WGS84),a.width<=y.CesiumMath.PI)return s=b.Rectangle.center(a,B),x=n.cartographicToCartesian(s,V),i=(x=new w.EllipsoidTangentPlane(x,n)).plane,M=s.longitude,s=a.south<0&&0<a.north?0:s.latitude,c=b.Cartographic.fromRadians(M,a.north,e,_),u=b.Cartographic.fromRadians(a.west,a.north,e,v),s=b.Cartographic.fromRadians(a.west,s,e,k),d=b.Cartographic.fromRadians(a.west,a.south,e,W),M=b.Cartographic.fromRadians(M,a.south,e,D),c=n.cartographicToCartesian(c,X),l=n.cartographicToCartesian(u,q),s=n.cartographicToCartesian(s,j),h=n.cartographicToCartesian(d,Z),M=n.cartographicToCartesian(M,Y),c=x.projectPointToNearestOnPlane(c,G),C=x.projectPointToNearestOnPlane(l,F),s=x.projectPointToNearestOnPlane(s,H),m=x.projectPointToNearestOnPlane(h,J),M=x.projectPointToNearestOnPlane(M,K),o=-(s=Math.min(C.x,s.x,m.x)),C=Math.max(C.y,c.y),c=Math.min(m.y,M.y),u.height=d.height=t,l=n.cartographicToCartesian(u,q),h=n.cartographicToCartesian(d,Z),m=Math.min(N.Plane.getPointDistance(i,l),N.Plane.getPointDistance(i,h)),M=e,z(x.origin,x.xAxis,x.yAxis,x.zAxis,s,o,c,C,m,M,r);var u=0<a.south,d=a.north<0,l=u?a.south:d?a.north:0,h=b.Rectangle.center(a,B).longitude,x=b.Cartesian3.fromRadians(h,l,e,n,Q);x.z=0;var m,M,f=Math.abs(x.x)<y.CesiumMath.EPSILON10&&Math.abs(x.y)<y.CesiumMath.EPSILON10?b.Cartesian3.UNIT_X:b.Cartesian3.normalize(x,$),p=b.Cartesian3.UNIT_Z,g=b.Cartesian3.cross(f,p,aa),h=(i=N.Plane.fromPointNormal(x,f,sa),b.Cartesian3.fromRadians(h+y.CesiumMath.PI_OVER_TWO,l,e,n,ta)),h=(s=-(o=b.Cartesian3.dot(N.Plane.projectPointOntoPlane(i,h,ea),g)),C=b.Cartesian3.fromRadians(0,a.north,d?t:e,n,na).z,c=b.Cartesian3.fromRadians(0,a.south,u?t:e,n,ra).z,b.Cartesian3.fromRadians(a.east,l,e,n,ia));return z(x,g,p,f,s,o,c,C,m=N.Plane.getPointDistance(i,h),M=0,r)},P.clone=function(a,t){if(O.defined(a))return O.defined(t)?(b.Cartesian3.clone(a.center,t.center),b.Matrix3.clone(a.halfAxes,t.halfAxes),t):new P(a.center,a.halfAxes)},P.intersectPlane=function(a,t){var e=a.center,n=t.normal,a=a.halfAxes,r=n.x,i=n.y,s=n.z,r=Math.abs(r*a[b.Matrix3.COLUMN0ROW0]+i*a[b.Matrix3.COLUMN0ROW1]+s*a[b.Matrix3.COLUMN0ROW2])+Math.abs(r*a[b.Matrix3.COLUMN1ROW0]+i*a[b.Matrix3.COLUMN1ROW1]+s*a[b.Matrix3.COLUMN1ROW2])+Math.abs(r*a[b.Matrix3.COLUMN2ROW0]+i*a[b.Matrix3.COLUMN2ROW1]+s*a[b.Matrix3.COLUMN2ROW2]),i=b.Cartesian3.dot(n,e)+t.distance;return i<=-r?l.Intersect.OUTSIDE:r<=i?l.Intersect.INSIDE:l.Intersect.INTERSECTING},new b.Cartesian3),f=new b.Cartesian3,p=new b.Cartesian3,oa=new b.Cartesian3,g=new b.Cartesian3,Ca=new b.Cartesian3,x=(P.distanceSquaredTo=function(a,t){var e,n,r,i,s,t=b.Cartesian3.subtract(t,a.center,m),a=a.halfAxes,o=b.Matrix3.getColumn(a,0,M),C=b.Matrix3.getColumn(a,1,f),a=b.Matrix3.getColumn(a,2,p),c=b.Cartesian3.magnitude(o),u=b.Cartesian3.magnitude(C),d=b.Cartesian3.magnitude(a),l=!0,h=!0,x=!0,l=(0<c?b.Cartesian3.divideByScalar(o,c,o):l=!1,0<u?b.Cartesian3.divideByScalar(C,u,C):h=!1,0<d?b.Cartesian3.divideByScalar(a,d,a):x=!1,!l+!h+!x),h=(1==l?(i=o,n=C,r=a,h?x||(i=a,r=o):(i=C,n=o),e=b.Cartesian3.cross(n,r,g),i===o?o=e:i===C?C=e:i===a&&(a=e)):2==l?(n=o,h?n=C:x&&(n=a),(i=b.Cartesian3.UNIT_Y).equalsEpsilon(n,y.CesiumMath.EPSILON3)&&(i=b.Cartesian3.UNIT_X),r=b.Cartesian3.cross(n,i,oa),b.Cartesian3.normalize(r,r),e=b.Cartesian3.cross(n,r,g),b.Cartesian3.normalize(e,e),n===o?(C=r,a=e):n===C?(a=r,o=e):n===a&&(o=r,C=e)):3==l&&(o=b.Cartesian3.UNIT_X,C=b.Cartesian3.UNIT_Y,a=b.Cartesian3.UNIT_Z),Ca),x=(h.x=b.Cartesian3.dot(t,o),h.y=b.Cartesian3.dot(t,C),h.z=b.Cartesian3.dot(t,a),0);return h.x<-c?x+=(s=h.x+c)*s:h.x>c&&(x+=(s=h.x-c)*s),h.y<-u?x+=(s=h.y+u)*s:h.y>u&&(x+=(s=h.y-u)*s),h.z<-d?x+=(s=h.z+d)*s:h.z>d&&(x+=(s=h.z-d)*s),x},new b.Cartesian3),ca=new b.Cartesian3,e=(P.computePlaneDistances=function(a,t,e,n){O.defined(n)||(n=new l.Interval);var r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,s=a.center,a=a.halfAxes,o=b.Matrix3.getColumn(a,0,M),C=b.Matrix3.getColumn(a,1,f),a=b.Matrix3.getColumn(a,2,p),c=b.Cartesian3.add(o,C,x),u=(b.Cartesian3.add(c,a,c),b.Cartesian3.add(c,s,c),b.Cartesian3.subtract(c,t,ca)),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i);return b.Cartesian3.add(s,o,c),b.Cartesian3.add(c,C,c),b.Cartesian3.subtract(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.add(s,o,c),b.Cartesian3.subtract(c,C,c),b.Cartesian3.add(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.add(s,o,c),b.Cartesian3.subtract(c,C,c),b.Cartesian3.subtract(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.subtract(s,o,c),b.Cartesian3.add(c,C,c),b.Cartesian3.add(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.subtract(s,o,c),b.Cartesian3.add(c,C,c),b.Cartesian3.subtract(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.subtract(s,o,c),b.Cartesian3.subtract(c,C,c),b.Cartesian3.add(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),b.Cartesian3.subtract(s,o,c),b.Cartesian3.subtract(c,C,c),b.Cartesian3.subtract(c,a,c),b.Cartesian3.subtract(c,t,u),d=b.Cartesian3.dot(e,u),r=Math.min(d,r),i=Math.max(d,i),n.start=r,n.stop=i,n},new l.BoundingSphere);P.isOccluded=function(a,t){a=l.BoundingSphere.fromOrientedBoundingBox(a,e);return!t.isBoundingSphereVisible(a)},P.prototype.intersectPlane=function(a){return P.intersectPlane(this,a)},P.prototype.distanceSquaredTo=function(a){return P.distanceSquaredTo(this,a)},P.prototype.computePlaneDistances=function(a,t,e){return P.computePlaneDistances(this,a,t,e)},P.prototype.isOccluded=function(a){return P.isOccluded(this,a)},P.equals=function(a,t){return a===t||O.defined(a)&&O.defined(t)&&b.Cartesian3.equals(a.center,t.center)&&b.Matrix3.equals(a.halfAxes,t.halfAxes)},P.prototype.clone=function(a){return P.clone(this,a)},P.prototype.equals=function(a){return P.equals(this,a)},a.OrientedBoundingBox=P});
@@ -0,0 +1 @@
1
+ define(["exports","./ArcType-1275a14e","./arrayRemoveDuplicates-bce1b0dc","./Matrix2-59fd2efe","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./EllipsoidRhumbLine-535d21cd","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./PolygonPipeline-832a906c","./Transforms-c1a1d063"],function(e,I,T,x,E,A,f,P,_,p,G,L,d){function M(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(M.prototype,{length:{get:function(){return this._length}}}),M.prototype.enqueue=function(e){this._array.push(e),this._length++},M.prototype.dequeue=function(){var e,t,i;if(0!==this._length)return i=(e=this._array)[t=this._offset],e[t]=void 0,10<++t&&e.length<2*t&&(this._array=e.slice(t),t=0),this._offset=t,this._length--,i},M.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},M.prototype.contains=function(e){return-1!==this._array.indexOf(e)},M.prototype.clear=function(){this._array.length=this._offset=this._length=0},M.prototype.sort=function(e){0<this._offset&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(e)};var D={computeHierarchyPackedLength:function(e){for(var t=0,i=[e];0<i.length;){var r=i.pop();if(A.defined(r)){t+=2;var n=r.positions,a=r.holes;if(A.defined(n)&&(t+=n.length*x.Cartesian3.packedLength),A.defined(a))for(var o=a.length,s=0;s<o;++s)i.push(a[s])}}return t},packPolygonHierarchy:function(e,t,i){for(var r=[e];0<r.length;){var n=r.pop();if(A.defined(n)){var a=n.positions,o=n.holes;if(t[i++]=A.defined(a)?a.length:0,t[i++]=A.defined(o)?o.length:0,A.defined(a))for(var s=a.length,u=0;u<s;++u,i+=3)x.Cartesian3.pack(a[u],t,i);if(A.defined(o))for(var l=o.length,h=0;h<l;++h)r.push(o[h])}}return i},unpackPolygonHierarchy:function(e,t){for(var i=e[t++],r=e[t++],n=new Array(i),a=0<r?new Array(r):void 0,o=0;o<i;++o,t+=x.Cartesian3.packedLength)n[o]=x.Cartesian3.unpack(e,t);for(var s=0;s<r;++s)a[s]=D.unpackPolygonHierarchy(e,t),t=a[s].startingIndex,delete a[s].startingIndex;return{positions:n,holes:a,startingIndex:t}}},y=new x.Cartesian3;D.subdivideLineCount=function(e,t,i){e=x.Cartesian3.distance(e,t),t=Math.max(0,Math.ceil(E.CesiumMath.log2(e/i)));return Math.pow(2,t)};var g=new x.Cartographic,m=new x.Cartographic,v=new x.Cartographic,C=new x.Cartesian3,b=(D.subdivideRhumbLineCount=function(e,t,i,r){t=e.cartesianToCartographic(t,g),i=e.cartesianToCartographic(i,m),t=new f.EllipsoidRhumbLine(t,i,e).surfaceDistance/r,i=Math.max(0,Math.ceil(E.CesiumMath.log2(t)));return Math.pow(2,i)},D.subdivideLine=function(e,t,i,r){for(var n,a,o=D.subdivideLineCount(e,t,i),s=x.Cartesian3.distance(e,t),u=s/o,l=r=A.defined(r)?r:[],h=(l.length=3*o,0),c=0;c<o;c++){n=e,f=c*u,a=s,x.Cartesian3.subtract(t,n,y),x.Cartesian3.multiplyByScalar(y,f/a,y),x.Cartesian3.add(n,y,y);var f=[y.x,y.y,y.z];l[h++]=f[0],l[h++]=f[1],l[h++]=f[2]}return l},D.subdivideRhumbLine=function(e,t,i,r,n){for(var t=e.cartesianToCartographic(t,g),i=e.cartesianToCartographic(i,m),a=new f.EllipsoidRhumbLine(t,i,e),t=a.surfaceDistance/r,i=Math.max(0,Math.ceil(E.CesiumMath.log2(t))),o=Math.pow(2,i),s=a.surfaceDistance/o,u=n=A.defined(n)?n:[],l=(u.length=3*o,0),h=0;h<o;h++){var c=a.interpolateUsingSurfaceDistance(h*s,v),c=e.cartographicToCartesian(c,C);u[l++]=c.x,u[l++]=c.y,u[l++]=c.z}return u},new x.Cartesian3),w=new x.Cartesian3,S=new x.Cartesian3,R=new x.Cartesian3,N=(D.scaleToGeodeticHeightExtruded=function(e,t,i,r,n){r=A.defaultValue(r,x.Ellipsoid.WGS84);var a=b,o=w,s=S,u=R;if(A.defined(e)&&A.defined(e.attributes)&&A.defined(e.attributes.position))for(var l=e.attributes.position.values,h=l.length/2,c=0;c<h;c+=3)x.Cartesian3.fromArray(l,c,s),r.geodeticSurfaceNormal(s,a),u=r.scaleToGeodeticSurface(s,u),o=x.Cartesian3.multiplyByScalar(a,i,o),o=x.Cartesian3.add(u,o,o),l[c+h]=o.x,l[c+1+h]=o.y,l[c+2+h]=o.z,n&&(u=x.Cartesian3.clone(s,u)),o=x.Cartesian3.multiplyByScalar(a,t,o),o=x.Cartesian3.add(u,o,o),l[c]=o.x,l[c+1]=o.y,l[c+2]=o.z;return e},D.polygonOutlinesFromHierarchy=function(e,t,i){var r,n,a=[],o=new M;for(o.enqueue(e);0!==o.length;){var s=o.dequeue(),u=s.positions;if(t)for(n=u.length,h=0;h<n;h++)i.scaleToGeodeticSurface(u[h],u[h]);if(!((u=T.arrayRemoveDuplicates(u,x.Cartesian3.equalsEpsilon,!0)).length<3)){for(var l=s.holes?s.holes.length:0,h=0;h<l;h++){var c=s.holes[h],f=c.positions;if(t)for(n=f.length,r=0;r<n;++r)i.scaleToGeodeticSurface(f[r],f[r]);if(!((f=T.arrayRemoveDuplicates(f,x.Cartesian3.equalsEpsilon,!0)).length<3)){a.push(f);var p=0;for(A.defined(c.holes)&&(p=c.holes.length),r=0;r<p;r++)o.enqueue(c.holes[r])}}a.push(u)}}return a},D.polygonsFromHierarchy=function(e,t,i,r){var n=[],a=[],o=new M;for(o.enqueue(e);0!==o.length;){var s,u=o.dequeue(),l=u.positions,h=u.holes;if(i)for(s=l.length,m=0;m<s;m++)r.scaleToGeodeticSurface(l[m],l[m]);if(!((l=T.arrayRemoveDuplicates(l,x.Cartesian3.equalsEpsilon,!0)).length<3)){var c=t(l);if(A.defined(c)){for(var f,p=[],d=(L.PolygonPipeline.computeWindingOrder2D(c)===L.WindingOrder.CLOCKWISE&&(c.reverse(),l=l.slice().reverse()),l.slice()),y=A.defined(h)?h.length:0,g=[],m=0;m<y;m++){var v=h[m],C=v.positions;if(i)for(s=C.length,f=0;f<s;++f)r.scaleToGeodeticSurface(C[f],C[f]);if(!((C=T.arrayRemoveDuplicates(C,x.Cartesian3.equalsEpsilon,!0)).length<3)){var b=t(C);if(A.defined(b)){L.PolygonPipeline.computeWindingOrder2D(b)===L.WindingOrder.CLOCKWISE&&(b.reverse(),C=C.slice().reverse()),g.push(C),p.push(d.length);var d=d.concat(C),c=c.concat(b),w=0;for(A.defined(v.holes)&&(w=v.holes.length),f=0;f<w;f++)o.enqueue(v.holes[f])}}}n.push({outerRing:l,holes:g}),a.push({positions:d,positions2D:c,holes:p})}}}return{hierarchy:n,polygons:a}},new x.Cartesian2),O=new x.Cartesian3,q=new d.Quaternion,B=new x.Matrix3,H=(D.computeBoundingRectangle=function(e,t,i,r,n){for(var e=d.Quaternion.fromAxisAngle(e,r,q),a=x.Matrix3.fromQuaternion(e,B),o=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,h=i.length,c=0;c<h;++c){var f=x.Cartesian3.clone(i[c],O),f=(x.Matrix3.multiplyByVector(a,f,f),t(f,N));A.defined(f)&&(o=Math.min(o,f.x),s=Math.max(s,f.x),u=Math.min(u,f.y),l=Math.max(l,f.y))}return n.x=o,n.y=u,n.width=s-o,n.height=l-u,n},D.createGeometryFromPositions=function(e,t,i,r,n,a){var o=L.PolygonPipeline.triangulate(t.positions2D,t.holes),s=(o.length<3&&(o=[0,1,2]),t.positions);if(r){for(var u=s.length,l=new Array(3*u),h=0,c=0;c<u;c++){var f=s[c];l[h++]=f.x,l[h++]=f.y,l[h++]=f.z}t=new P.Geometry({attributes:{position:new P.GeometryAttribute({componentDatatype:E.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})},indices:o,primitiveType:P.PrimitiveType.TRIANGLES});return n.normal?p.GeometryPipeline.computeNormal(t):t}return a===I.ArcType.GEODESIC?L.PolygonPipeline.computeSubdivision(e,s,o,i):a===I.ArcType.RHUMB?L.PolygonPipeline.computeRhumbLineSubdivision(e,s,o,i):void 0},[]),k=new x.Cartesian3,z=new x.Cartesian3;D.computeWallGeometry=function(e,t,i,r,n){var a,o,s,u=e.length,l=0;if(r)for(o=3*u*2,a=new Array(2*o),s=0;s<u;s++)p=e[s],d=e[(s+1)%u],a[l]=a[l+o]=p.x,a[++l]=a[l+o]=p.y,a[++l]=a[l+o]=p.z,a[++l]=a[l+o]=d.x,a[++l]=a[l+o]=d.y,a[++l]=a[l+o]=d.z,++l;else{var h=E.CesiumMath.chordLength(i,t.maximumRadius),c=0;if(n===I.ArcType.GEODESIC)for(s=0;s<u;s++)c+=D.subdivideLineCount(e[s],e[(s+1)%u],h);else if(n===I.ArcType.RHUMB)for(s=0;s<u;s++)c+=D.subdivideRhumbLineCount(t,e[s],e[(s+1)%u],h);for(o=3*(c+u),a=new Array(2*o),s=0;s<u;s++){var f,p=e[s],d=e[(s+1)%u];n===I.ArcType.GEODESIC?f=D.subdivideLine(p,d,h,H):n===I.ArcType.RHUMB&&(f=D.subdivideRhumbLine(t,p,d,h,H));for(var y=f.length,g=0;g<y;++g,++l)a[l]=f[g],a[l+o]=f[g];a[l]=d.x,a[l+o]=d.x,a[++l]=d.y,a[l+o]=d.y,a[++l]=d.z,a[l+o]=d.z,++l}}var u=a.length,m=G.IndexDatatype.createTypedArray(u/3,u-6*e.length),v=0;for(u/=6,s=0;s<u;s++){var C=s,b=C+1,w=C+u,T=w+1;p=x.Cartesian3.fromArray(a,3*C,k),d=x.Cartesian3.fromArray(a,3*b,z),x.Cartesian3.equalsEpsilon(p,d,E.CesiumMath.EPSILON10,E.CesiumMath.EPSILON10)||(m[v++]=C,m[v++]=w,m[v++]=b,m[v++]=b,m[v++]=w,m[v++]=T)}return new P.Geometry({attributes:new _.GeometryAttributes({position:new P.GeometryAttribute({componentDatatype:E.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:a})}),indices:m,primitiveType:P.PrimitiveType.TRIANGLES})},e.PolygonGeometryLibrary=D});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./EllipsoidRhumbLine-535d21cd","./GeometryAttribute-3dd6da35","./WebGLConstants-35626ea2"],function(e,L,p,D,G,O,T,t){function n(e,t,n){n=n||2;var r,a,i,x,u,o=t&&t.length,s=o?t[0]*n:e.length,p=v(e,0,s,n,!0),h=[];if(p&&p.next!==p.prev){if(o&&(p=function(e,t,n,r){var a,i,x,u,o=[];for(a=0,i=t.length;a<i;a++)u=t[a]*r,x=a<i-1?t[a+1]*r:e.length,(u=v(e,u,x,r,!1))===u.next&&(u.steiner=!0),o.push(function(e){var t=e,n=e;for(;(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next,t!==e;);return n}(u));for(o.sort(c),a=0;a<o.length;a++)!function(e,t){(t=function(e,t){var n,r=t,a=e.x,i=e.y,x=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=a&&x<u){if((x=u)===a){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}}while(r=r.next,r!==t);if(!n)return null;if(a!==x){var o,s=n,p=n.x,h=n.y,f=1/0;for(r=n;a>=r.x&&r.x>=p&&a!==r.x&&z(i<h?a:x,i,p,h,i<h?x:a,i,r.x,r.y)&&(o=Math.abs(i-r.y)/(a-r.x),I(r,e))&&(o<f||o===f&&(r.x>n.x||r.x===n.x&&function(e,t){return R(e.prev,e,t.prev)<0&&R(t.next,e,e.next)<0}(n,r)))&&(n=r,f=o),(r=r.next)!==s;);}return n}(e,t))&&Z(t=B(t,e),t.next)}(o[a],n),n=Z(n,n.next);return n}(e,t,p,n)),e.length>80*n){for(var f=r=e[0],l=a=e[1],y=n;y<s;y+=n)(i=e[y])<f&&(f=i),(x=e[y+1])<l&&(l=x),r<i&&(r=i),a<x&&(a=x);u=0!==(u=Math.max(r-f,a-l))?1/u:0}S(p,h,n,f,l,u)}return h}function v(e,t,n,r,a){var i,x;if(a===0<d(e,t,n,r))for(i=t;i<n;i+=r)x=u(i,e[i],e[i+1],x);else for(i=n-r;t<=i;i-=r)x=u(i,e[i],e[i+1],x);return x&&W(x,x.next)&&(N(x),x=x.next),x}function Z(e,t){if(!e)return e;t=t||e;var n,r=e;do{if(n=!1,r.steiner||!W(r,r.next)&&0!==R(r.prev,r,r.next))r=r.next;else{if(N(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function S(e,t,n,r,a,i,x){if(e){if(!x&&i){for(var u=e,o=r,s=a,p=i,h=u;null===h.z&&(h.z=A(h.x,h.y,o,s,p)),h.prevZ=h.prev,h.nextZ=h.next,(h=h.next)!==u;);h.prevZ.nextZ=null,h.prevZ=null;var f,l,y,v,c,d,m,C,g=h,b=1;do{for(l=g,c=g=null,d=0;l;){for(d++,y=l,f=m=0;f<b&&(m++,y=y.nextZ);f++);for(C=b;0<m||0<C&&y;)0!==m&&(0===C||!y||l.z<=y.z)?(l=(v=l).nextZ,m--):(y=(v=y).nextZ,C--),c?c.nextZ=v:g=v,v.prevZ=c,c=v;l=y}}while(c.nextZ=null,b*=2,1<d)}for(var w,E,M=e;e.prev!==e.next;)if(w=e.prev,E=e.next,i?function(e,t,n,r){var a=e.prev,i=e,x=e.next;if(0<=R(a,i,x))return;var u=(a.x<i.x?a.x<x.x?a:x:i.x<x.x?i:x).x,o=(a.y<i.y?a.y<x.y?a:x:i.y<x.y?i:x).y,s=(i.x<a.x?a.x>x.x?a:x:i.x>x.x?i:x).x,p=(i.y<a.y?a.y>x.y?a:x:i.y>x.y?i:x).y,h=A(u,o,t,n,r),f=A(s,p,t,n,r),l=e.prevZ,y=e.nextZ;for(;l&&l.z>=h&&y&&y.z<=f;){if(l!==e.prev&&l!==e.next&&z(a.x,a.y,i.x,i.y,x.x,x.y,l.x,l.y)&&0<=R(l.prev,l,l.next))return;if(l=l.prevZ,y!==e.prev&&y!==e.next&&z(a.x,a.y,i.x,i.y,x.x,x.y,y.x,y.y)&&0<=R(y.prev,y,y.next))return;y=y.nextZ}for(;l&&l.z>=h;){if(l!==e.prev&&l!==e.next&&z(a.x,a.y,i.x,i.y,x.x,x.y,l.x,l.y)&&0<=R(l.prev,l,l.next))return;l=l.prevZ}for(;y&&y.z<=f;){if(y!==e.prev&&y!==e.next&&z(a.x,a.y,i.x,i.y,x.x,x.y,y.x,y.y)&&0<=R(y.prev,y,y.next))return;y=y.nextZ}return 1}(e,r,a,i):function(e){var t=e.prev,n=e,r=e.next;if(0<=R(t,n,r))return;var a=e.next.next;for(;a!==e.prev;){if(z(t.x,t.y,n.x,n.y,r.x,r.y,a.x,a.y)&&0<=R(a.prev,a,a.next))return;a=a.next}return 1}(e))t.push(w.i/n),t.push(e.i/n),t.push(E.i/n),N(e),e=E.next,M=E.next;else if((e=E)===M){x?1===x?S(e=function(e,t,n){var r=e;do{var a=r.prev,i=r.next.next}while(!W(a,i)&&P(a,r,r.next,i)&&I(a,i)&&I(i,a)&&(t.push(a.i/n),t.push(r.i/n),t.push(i.i/n),N(r),N(r.next),r=e=i),r=r.next,r!==e);return Z(r)}(Z(e),t,n),t,n,r,a,i,2):2===x&&function(e,t,n,r,a,i){var x=e;do{for(var u,o=x.next.next;o!==x.prev;){if(x.i!==o.i&&function(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&P(n,n.next,e,t))return 1}while(n=n.next,n!==e);return}(e,t)&&(I(e,t)&&I(t,e)&&function(e,t){var n=e,r=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;for(;n.y>i!=n.next.y>i&&n.next.y!==n.y&&a<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next,n!==e;);return r}(e,t)&&(R(e.prev,e,t.prev)||R(e,t.prev,t))||W(e,t)&&0<R(e.prev,e,e.next)&&0<R(t.prev,t,t.next))}(x,o))return u=B(x,o),x=Z(x,x.next),u=Z(u,u.next),S(x,t,n,r,a,i),S(u,t,n,r,a,i);o=o.next}}while(x=x.next,x!==e)}(e,t,n,r,a,i):S(Z(e),t,n,r,a,i,1);break}}}function c(e,t){return e.x-t.x}function A(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*a)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*a)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function z(e,t,n,r,a,i,x,u){return 0<=(a-x)*(t-u)-(e-x)*(i-u)&&0<=(e-x)*(r-u)-(n-x)*(t-u)&&0<=(n-x)*(i-u)-(a-x)*(r-u)}function R(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function W(e,t){return e.x===t.x&&e.y===t.y}function P(e,t,n,r){var a=s(R(e,t,n)),i=s(R(e,t,r)),x=s(R(n,r,e)),u=s(R(n,r,t));return a!==i&&x!==u||0===a&&o(e,n,t)||0===i&&o(e,r,t)||0===x&&o(n,e,r)||!(0!==u||!o(n,t,r))}function o(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function s(e){return 0<e?1:e<0?-1:0}function I(e,t){return R(e.prev,e,e.next)<0?0<=R(e,t,e.next)&&0<=R(e,e.prev,t):R(e,t,e.prev)<0||R(e,e.next,t)<0}function B(e,t){var n=new x(e.i,e.x,e.y),r=new x(t.i,t.x,t.y),a=e.next,i=t.prev;return(e.next=t).prev=e,(n.next=a).prev=n,r.next=n,(i.next=n.prev=r).prev=i,r}function u(e,t,n,r){e=new x(e,t,n);return r?(e.next=r.next,(e.prev=r).next.prev=e,r.next=e):(e.prev=e).next=e,e}function N(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function x(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function d(e,t,n,r){for(var a=0,i=t,x=n-r;i<n;i+=r)a+=(e[x]-e[i])*(e[i+1]+e[x+1]),x=i;return a}n.deviation=function(e,t,n,r){var a=t&&t.length,i=a?t[0]*n:e.length,x=Math.abs(d(e,0,i,n));if(a)for(var u=0,o=t.length;u<o;u++){var s=t[u]*n,p=u<o-1?t[u+1]*n:e.length;x-=Math.abs(d(e,s,p,n))}for(var h=0,u=0;u<r.length;u+=3){var f=r[u]*n,l=r[u+1]*n,y=r[u+2]*n;h+=Math.abs((e[f]-e[y])*(e[1+l]-e[1+f])-(e[f]-e[l])*(e[1+y]-e[1+f]))}return 0===x&&0===h?0:Math.abs((h-x)/x)},n.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var i=0;i<e[a].length;i++)for(var x=0;x<t;x++)n.vertices.push(e[a][i][x]);0<a&&(r+=e[a-1].length,n.holes.push(r))}return n};var r={CLOCKWISE:t.WebGLConstants.CW,COUNTER_CLOCKWISE:t.WebGLConstants.CCW,validate:function(e){return e===r.CLOCKWISE||e===r.COUNTER_CLOCKWISE}},a=Object.freeze(r),h=new L.Cartesian3,f=new L.Cartesian3,i={computeArea2D:function(e){for(var t=e.length,n=0,r=t-1,a=0;a<t;r=a++){var i=e[r],x=e[a];n+=i.x*x.y-x.x*i.y}return.5*n},computeWindingOrder2D:function(e){return 0<i.computeArea2D(e)?a.COUNTER_CLOCKWISE:a.CLOCKWISE},triangulate:function(e,t){return n(L.Cartesian2.packArray(e),t,2)}},U=new L.Cartesian3,_=new L.Cartesian3,K=new L.Cartesian3,V=new L.Cartesian3,k=new L.Cartesian3,q=new L.Cartesian3,F=new L.Cartesian3,H=(i.computeSubdivision=function(e,t,n,r){r=G.defaultValue(r,D.CesiumMath.RADIANS_PER_DEGREE);for(var a=n.slice(0),i=t.length,x=new Array(3*i),u=0,o=0;o<i;o++){var s=t[o];x[u++]=s.x,x[u++]=s.y,x[u++]=s.z}for(var p=[],h={},f=e.maximumRadius,n=D.CesiumMath.chordLength(r,f),l=n*n;0<a.length;){var y,v,c=a.pop(),d=a.pop(),m=a.pop(),C=L.Cartesian3.fromArray(x,3*m,U),g=L.Cartesian3.fromArray(x,3*d,_),b=L.Cartesian3.fromArray(x,3*c,K),w=L.Cartesian3.multiplyByScalar(L.Cartesian3.normalize(C,V),f,V),E=L.Cartesian3.multiplyByScalar(L.Cartesian3.normalize(g,k),f,k),M=L.Cartesian3.multiplyByScalar(L.Cartesian3.normalize(b,q),f,q),Z=L.Cartesian3.magnitudeSquared(L.Cartesian3.subtract(w,E,F)),E=L.Cartesian3.magnitudeSquared(L.Cartesian3.subtract(E,M,F)),M=L.Cartesian3.magnitudeSquared(L.Cartesian3.subtract(M,w,F)),w=Math.max(Z,E,M);l<w?Z===w?(o=h[y=Math.min(m,d)+" "+Math.max(m,d)],G.defined(o)||(v=L.Cartesian3.add(C,g,F),L.Cartesian3.multiplyByScalar(v,.5,v),x.push(v.x,v.y,v.z),o=x.length/3-1,h[y]=o),a.push(m,o,c),a.push(o,d,c)):E===w?(o=h[y=Math.min(d,c)+" "+Math.max(d,c)],G.defined(o)||(v=L.Cartesian3.add(g,b,F),L.Cartesian3.multiplyByScalar(v,.5,v),x.push(v.x,v.y,v.z),o=x.length/3-1,h[y]=o),a.push(d,o,m),a.push(o,c,m)):M===w&&(o=h[y=Math.min(c,m)+" "+Math.max(c,m)],G.defined(o)||(v=L.Cartesian3.add(b,C,F),L.Cartesian3.multiplyByScalar(v,.5,v),x.push(v.x,v.y,v.z),o=x.length/3-1,h[y]=o),a.push(c,o,d),a.push(o,m,d)):(p.push(m),p.push(d),p.push(c))}return new T.Geometry({attributes:{position:new T.GeometryAttribute({componentDatatype:D.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:x})},indices:p,primitiveType:T.PrimitiveType.TRIANGLES})},new L.Cartographic),J=new L.Cartographic,Q=new L.Cartographic,j=new L.Cartographic;i.computeRhumbLineSubdivision=function(e,t,n,r){r=G.defaultValue(r,D.CesiumMath.RADIANS_PER_DEGREE);for(var a=n.slice(0),i=t.length,x=new Array(3*i),u=0,o=0;o<i;o++){var s=t[o];x[u++]=s.x,x[u++]=s.y,x[u++]=s.z}for(var p=[],h={},n=e.maximumRadius,f=D.CesiumMath.chordLength(r,n),l=new O.EllipsoidRhumbLine(void 0,void 0,e),y=new O.EllipsoidRhumbLine(void 0,void 0,e),v=new O.EllipsoidRhumbLine(void 0,void 0,e);0<a.length;){var c,d,m,C,g=a.pop(),b=a.pop(),w=a.pop(),E=L.Cartesian3.fromArray(x,3*w,U),M=L.Cartesian3.fromArray(x,3*b,_),Z=L.Cartesian3.fromArray(x,3*g,K),E=e.cartesianToCartographic(E,H),M=e.cartesianToCartographic(M,J),Z=e.cartesianToCartographic(Z,Q),S=(l.setEndPoints(E,M),l.surfaceDistance),A=(y.setEndPoints(M,Z),y.surfaceDistance),z=(v.setEndPoints(Z,E),v.surfaceDistance),R=Math.max(S,A,z);f<R?S===R?(o=h[c=Math.min(w,b)+" "+Math.max(w,b)],G.defined(o)||(d=l.interpolateUsingFraction(.5,j),m=.5*(E.height+M.height),C=L.Cartesian3.fromRadians(d.longitude,d.latitude,m,e,F),x.push(C.x,C.y,C.z),o=x.length/3-1,h[c]=o),a.push(w,o,g),a.push(o,b,g)):A===R?(o=h[c=Math.min(b,g)+" "+Math.max(b,g)],G.defined(o)||(d=y.interpolateUsingFraction(.5,j),m=.5*(M.height+Z.height),C=L.Cartesian3.fromRadians(d.longitude,d.latitude,m,e,F),x.push(C.x,C.y,C.z),o=x.length/3-1,h[c]=o),a.push(b,o,w),a.push(o,g,w)):z===R&&(o=h[c=Math.min(g,w)+" "+Math.max(g,w)],G.defined(o)||(d=v.interpolateUsingFraction(.5,j),m=.5*(Z.height+E.height),C=L.Cartesian3.fromRadians(d.longitude,d.latitude,m,e,F),x.push(C.x,C.y,C.z),o=x.length/3-1,h[c]=o),a.push(g,o,b),a.push(o,w,b)):(p.push(w),p.push(b),p.push(g))}return new T.Geometry({attributes:{position:new T.GeometryAttribute({componentDatatype:D.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:x})},indices:p,primitiveType:T.PrimitiveType.TRIANGLES})},i.scaleToGeodeticHeight=function(e,t,n,r){n=G.defaultValue(n,L.Ellipsoid.WGS84);var a=h,i=f;if(t=G.defaultValue(t,0),r=G.defaultValue(r,!0),G.defined(e))for(var x=e.length,u=0;u<x;u+=3)L.Cartesian3.fromArray(e,u,i),r&&(i=n.scaleToGeodeticSurface(i,i)),0!==t&&(a=n.geodeticSurfaceNormal(i,a),L.Cartesian3.multiplyByScalar(a,t,a),L.Cartesian3.add(i,a,i)),e[u]=i.x,e[u+1]=i.y,e[u+2]=i.z;return e},e.PolygonPipeline=i,e.WindingOrder=a});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./when-ae2e0b60","./RuntimeError-24b14c10","./EllipsoidGeodesic-640f147e","./EllipsoidRhumbLine-535d21cd","./IntersectionTests-60f10d18","./ComponentDatatype-b7b5db18","./Plane-43337cee"],function(a,m,p,e,r,d,w,v,P){var T={numberOfPoints:function(a,e,r){a=m.Cartesian3.distance(a,e);return Math.ceil(a/r)},numberOfPointsRhumbLine:function(a,e,r){a=Math.pow(a.longitude-e.longitude,2)+Math.pow(a.latitude-e.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(a/(r*r))))}},o=new m.Cartographic,y=(T.extractHeights=function(a,e){for(var r=a.length,t=new Array(r),n=0;n<r;n++){var i=a[n];t[n]=e.cartesianToCartographic(i,o).height}return t},new m.Matrix4),A=new m.Cartesian3,b=new m.Cartesian3,E=new P.Plane(m.Cartesian3.UNIT_X,0),R=new m.Cartesian3,M=new P.Plane(m.Cartesian3.UNIT_X,0),S=new m.Cartesian3,D=new m.Cartesian3,x=[];function N(a,e,r){var t=x;if(t.length=a,e===r)for(i=0;i<a;i++)t[i]=e;else for(var n=(r-e)/a,i=0;i<a;i++)t[i]=e+i*n;return t}var G=new m.Cartographic,I=new m.Cartographic,V=new m.Cartesian3,k=new m.Cartesian3,L=new m.Cartesian3,_=new r.EllipsoidGeodesic,O=new d.EllipsoidRhumbLine;T.wrapLongitude=function(a,e){var r=[],t=[];if(p.defined(a)&&0<a.length){e=p.defaultValue(e,m.Matrix4.IDENTITY);for(var e=m.Matrix4.inverseTransformation(e,y),n=m.Matrix4.multiplyByPoint(e,m.Cartesian3.ZERO,A),i=m.Cartesian3.normalize(m.Matrix4.multiplyByPointAsVector(e,m.Cartesian3.UNIT_Y,b),b),o=P.Plane.fromPointNormal(n,i,E),e=m.Cartesian3.normalize(m.Matrix4.multiplyByPointAsVector(e,m.Cartesian3.UNIT_X,R),R),s=P.Plane.fromPointNormal(n,e,M),c=1,l=(r.push(m.Cartesian3.clone(a[0])),r[0]),u=a.length,h=1;h<u;++h){var f,g,C=a[h];(P.Plane.getPointDistance(s,l)<0||P.Plane.getPointDistance(s,C)<0)&&(f=w.IntersectionTests.lineSegmentPlane(l,C,o,S),p.defined(f))&&(g=m.Cartesian3.multiplyByScalar(i,5e-9,D),P.Plane.getPointDistance(o,l)<0&&m.Cartesian3.negate(g,g),r.push(m.Cartesian3.add(f,g,new m.Cartesian3)),t.push(c+1),m.Cartesian3.negate(g,g),r.push(m.Cartesian3.add(f,g,new m.Cartesian3)),c=1),r.push(m.Cartesian3.clone(a[h])),c++,l=C}t.push(c)}return{positions:r,lengths:t}},T.generateArc=function(a){var e=(a=p.defined(a)?a:{}).positions,r=e.length,t=p.defaultValue(a.ellipsoid,m.Ellipsoid.WGS84),n=p.defaultValue(a.height,0),i=Array.isArray(n);if(r<1)return[];if(1===r)return l=t.scaleToGeodeticSurface(e[0],k),0!==(n=i?n[0]:n)&&(f=t.geodeticSurfaceNormal(l,V),m.Cartesian3.multiplyByScalar(f,n,f),m.Cartesian3.add(l,f,l)),[l.x,l.y,l.z];for(var o=a.minDistance,s=(p.defined(o)||(f=p.defaultValue(a.granularity,v.CesiumMath.RADIANS_PER_DEGREE),o=v.CesiumMath.chordLength(f,t.maximumRadius)),0),c=0;c<r-1;c++)s+=T.numberOfPoints(e[c],e[c+1],o);var l=3*(s+1),u=new Array(l),h=0;for(c=0;c<r-1;c++)h=function(a,e,r,t,n,i,o,s){var c=t.scaleToGeodeticSurface(a,k),l=t.scaleToGeodeticSurface(e,L),u=T.numberOfPoints(a,e,r),a=t.cartesianToCartographic(c,G),e=t.cartesianToCartographic(l,I),h=N(u,n,i),f=(_.setEndPoints(a,e),_.surfaceDistance/u),g=s,C=(a.height=n,t.cartographicToCartesian(a,V));m.Cartesian3.pack(C,o,g),g+=3;for(var p=1;p<u;p++){var d=_.interpolateUsingSurfaceDistance(p*f,I);d.height=h[p],C=t.cartographicToCartesian(d,V),m.Cartesian3.pack(C,o,g),g+=3}return g}(e[c],e[c+1],o,t,i?n[c]:n,i?n[c+1]:n,u,h);x.length=0;var a=e[r-1],f=t.cartesianToCartographic(a,G),a=(f.height=i?n[r-1]:n,t.cartographicToCartesian(f,V));return m.Cartesian3.pack(a,u,l-3),u};var B=new m.Cartographic,U=new m.Cartographic;T.generateRhumbArc=function(a){var e=(a=p.defined(a)?a:{}).positions,r=e.length,t=p.defaultValue(a.ellipsoid,m.Ellipsoid.WGS84),n=p.defaultValue(a.height,0),i=Array.isArray(n);if(r<1)return[];if(1===r)return C=t.scaleToGeodeticSurface(e[0],k),0!==(n=i?n[0]:n)&&(h=t.geodeticSurfaceNormal(C,V),m.Cartesian3.multiplyByScalar(h,n,h),m.Cartesian3.add(C,h,C)),[C.x,C.y,C.z];for(var o,s=p.defaultValue(a.granularity,v.CesiumMath.RADIANS_PER_DEGREE),c=0,l=t.cartesianToCartographic(e[0],B),u=0;u<r-1;u++)o=t.cartesianToCartographic(e[u+1],U),c+=T.numberOfPointsRhumbLine(l,o,s),l=m.Cartographic.clone(o,B);var h=3*(c+1),f=new Array(h),g=0;for(u=0;u<r-1;u++)g=function(a,e,r,t,n,i,o,s){var a=t.cartesianToCartographic(a,G),e=t.cartesianToCartographic(e,I),c=T.numberOfPointsRhumbLine(a,e,r),l=(a.height=0,e.height=0,N(c,n,i)),u=((O=O.ellipsoid.equals(t)?O:new d.EllipsoidRhumbLine(void 0,void 0,t)).setEndPoints(a,e),O.surfaceDistance/c),h=s,f=(a.height=n,t.cartographicToCartesian(a,V));m.Cartesian3.pack(f,o,h),h+=3;for(var g=1;g<c;g++){var C=O.interpolateUsingSurfaceDistance(g*u,I);C.height=l[g],f=t.cartographicToCartesian(C,V),m.Cartesian3.pack(f,o,h),h+=3}return h}(e[u],e[u+1],s,t,i?n[u]:n,i?n[u+1]:n,f,g);x.length=0;var C=e[r-1],a=t.cartesianToCartographic(C,G),C=(a.height=i?n[r-1]:n,t.cartographicToCartesian(a,V));return m.Cartesian3.pack(C,f,h-3),f},T.generateCartesianArc=function(a){for(var e=T.generateArc(a),r=e.length/3,t=new Array(r),n=0;n<r;n++)t[n]=m.Cartesian3.unpack(e,3*n);return t},T.generateCartesianRhumbArc=function(a){for(var e=T.generateRhumbArc(a),r=e.length/3,t=new Array(r),n=0;n<r;n++)t[n]=m.Cartesian3.unpack(e,3*n);return t},a.PolylinePipeline=T});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./EllipsoidTangentPlane-4a503a7a","./ComponentDatatype-b7b5db18","./PolylinePipeline-83139cb3","./Transforms-c1a1d063","./when-ae2e0b60","./RuntimeError-24b14c10"],function(e,R,g,O,I,h,r,a){var V=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2}),n={};function N(e,a){r.defined(n[e])||(n[e]=!0,console.warn(r.defaultValue(a,e)))}N.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",N.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",N.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",N.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";var G=[new R.Cartesian3,new R.Cartesian3],H=new R.Cartesian3,L=new R.Cartesian3,j=new R.Cartesian3,Q=new R.Cartesian3,q=new R.Cartesian3,F=new R.Cartesian3,U=new R.Cartesian3,_=new R.Cartesian3,ee=new R.Cartesian3,Z=new R.Cartesian3,f=new R.Cartesian3,W={},Y=new R.Cartographic;function k(e,a,r,n){var t=e[0],t=R.Cartesian3.angleBetween(t,e[1]),i=Math.ceil(t/n),o=new Array(i);if(a===r)for(l=0;l<i;l++)o[l]=a;else{for(var s=(r-a)/i,l=1;l<i;l++)o[l]=a+l*s;o[0]=a}return o.push(r),o}var y=new R.Cartesian3,m=new R.Cartesian3;var b=new R.Cartesian3(-1,0,0),p=new R.Matrix4,M=new R.Matrix4,w=new R.Matrix3,T=R.Matrix3.IDENTITY.clone(),B=new R.Cartesian3,z=new R.Cartesian4,x=new R.Cartesian3;function J(e,a,r,n,t,i,o,s){var l=B,C=z,a=(p=h.Transforms.eastNorthUpToFixedFrame(e,t,p),l=R.Matrix4.multiplyByPointAsVector(p,b,l),l=R.Cartesian3.normalize(l,l),l=l,a=a,e=e,t=t,t=new g.EllipsoidTangentPlane(e,t),l=t.projectPointOntoPlane(R.Cartesian3.add(e,l,y),y),t=t.projectPointOntoPlane(R.Cartesian3.add(e,a,m),m),e=R.Cartesian2.angleBetween(l,t),0<=t.x*l.y-t.y*l.x?-e:e),c=(w=R.Matrix3.fromRotationZ(a,w),x.z=i,p=R.Matrix4.multiplyTransformation(p,R.Matrix4.fromRotationTranslation(w,x,M),p),T);c[0]=o;for(var u=0;u<s;u++)for(var d=0;d<r.length;d+=3)C=R.Cartesian3.fromArray(r,d,C),C=R.Matrix3.multiplyByVector(c,C,C),C=R.Matrix4.multiplyByPoint(p,C,C),n.push(C.x,C.y,C.z);return n}var l=new R.Cartesian3;function K(e,a,r,n,t,i,o){for(var s=0;s<e.length;s+=3)n=J(R.Cartesian3.fromArray(e,s,l),a,r,n,t,i[s/3],o,1);return n}function X(e,a){for(var r=e.length,n=new Array(3*r),t=0,i=a.x+a.width/2,o=a.y+a.height/2,s=0;s<r;s++)n[t++]=e[s].x-i,n[t++]=0,n[t++]=e[s].y-o;return n}var v=new h.Quaternion,E=new R.Cartesian3,P=new R.Matrix3;function $(e,a,r,n,t,i,o,s,l,C){var c,u=R.Cartesian3.angleBetween(R.Cartesian3.subtract(a,e,Z),R.Cartesian3.subtract(r,e,f)),d=n===V.BEVELED?0:Math.ceil(u/O.CesiumMath.toRadians(5)),g=t?R.Matrix3.fromQuaternion(h.Quaternion.fromAxisAngle(R.Cartesian3.negate(e,Z),u/(d+1),v),P):R.Matrix3.fromQuaternion(h.Quaternion.fromAxisAngle(e,u/(d+1),v),P);if(a=R.Cartesian3.clone(a,E),0<d)for(var y=C?2:1,m=0;m<d;m++)a=R.Matrix3.multiplyByVector(g,a,a),c=R.Cartesian3.subtract(a,e,Z),c=R.Cartesian3.normalize(c,c),t||(c=R.Cartesian3.negate(c,c)),o=J(i.scaleToGeodeticSurface(a,f),c,s,o,i,l,1,y);else c=R.Cartesian3.subtract(a,e,Z),c=R.Cartesian3.normalize(c,c),t||(c=R.Cartesian3.negate(c,c)),o=J(i.scaleToGeodeticSurface(a,f),c,s,o,i,l,1,1),r=R.Cartesian3.clone(r,E),c=R.Cartesian3.subtract(r,e,Z),c=R.Cartesian3.normalize(c,c),t||(c=R.Cartesian3.negate(c,c)),o=J(i.scaleToGeodeticSurface(r,f),c,s,o,i,l,1,1)}W.removeDuplicatesFromShape=function(e){for(var a=e.length,r=[],n=a-1,t=0;t<a;n=t++){var i=e[n],o=e[t];R.Cartesian2.equals(i,o)||r.push(o)}return r},W.angleIsGreaterThanPi=function(e,a,r,n){n=new g.EllipsoidTangentPlane(r,n),e=n.projectPointOntoPlane(R.Cartesian3.add(r,e,y),y),n=n.projectPointOntoPlane(R.Cartesian3.add(r,a,m),m);return 0<=n.x*e.y-n.y*e.x};var ae=new R.Cartesian3,re=new R.Cartesian3;W.computePositions=function(e,a,r,n,t){var i,o=n._ellipsoid,s=function(e,a){for(var r=new Array(e.length),n=0;n<e.length;n++){var t=e[n];Y=a.cartesianToCartographic(t,Y),r[n]=Y.height,e[n]=a.scaleToGeodeticSurface(t,t)}return r}(e,o),l=n._granularity,C=n._cornerType,c=(t?function(e,a){var r=e.length,n=new Array(6*r),t=0,i=a.x+a.width/2,o=a.y+a.height/2,s=e[0];n[t++]=s.x-i,n[t++]=0,n[t++]=s.y-o;for(var l=1;l<r;l++){var C=(s=e[l]).x-i,c=s.y-o;n[t++]=C,n[t++]=0,n[t++]=c,n[t++]=C,n[t++]=0,n[t++]=c}return n[t++]=(s=e[0]).x-i,n[t++]=0,n[t++]=s.y-o,n}:X)(a,r),n=t?X(a,r):void 0,u=r.height/2,d=r.width/2,g=e.length,y=[],a=t?[]:void 0,m=H,h=L,f=j,p=Q,w=q,x=F,v=U,E=_,P=ee,b=e[0],M=e[1],T=(p=o.geodeticSurfaceNormal(b,p),m=R.Cartesian3.subtract(M,b,m),m=R.Cartesian3.normalize(m,m),E=R.Cartesian3.cross(p,m,E),E=R.Cartesian3.normalize(E,E),s[0]),B=s[1];t&&(a=J(b,E,n,a,o,T+u,1,1)),P=R.Cartesian3.clone(b,P),b=M,h=R.Cartesian3.negate(m,h);for(var z=1;z<g-1;z++){var S,A,D=t?2:1,M=e[z+1];b.equals(M)?N("Positions are too close and are considered equivalent with rounding error."):(m=R.Cartesian3.subtract(M,b,m),m=R.Cartesian3.normalize(m,m),f=R.Cartesian3.add(m,h,f),f=R.Cartesian3.normalize(f,f),p=o.geodeticSurfaceNormal(b,p),S=R.Cartesian3.multiplyByScalar(p,R.Cartesian3.dot(m,p),ae),A=(R.Cartesian3.subtract(m,S,S),R.Cartesian3.normalize(S,S),R.Cartesian3.multiplyByScalar(p,R.Cartesian3.dot(h,p),re)),R.Cartesian3.subtract(h,A,A),R.Cartesian3.normalize(A,A),!O.CesiumMath.equalsEpsilon(Math.abs(R.Cartesian3.dot(S,A)),1,O.CesiumMath.EPSILON7)?(f=R.Cartesian3.cross(f,p,f),f=R.Cartesian3.cross(p,f,f),f=R.Cartesian3.normalize(f,f),S=1/Math.max(.25,R.Cartesian3.magnitude(R.Cartesian3.cross(f,h,Z))),(A=W.angleIsGreaterThanPi(m,h,b,o))?(w=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,S*d,f),w),x=R.Cartesian3.add(w,R.Cartesian3.multiplyByScalar(E,d,x),x),G[0]=R.Cartesian3.clone(P,G[0]),G[1]=R.Cartesian3.clone(x,G[1]),i=k(G,T+u,B+u,l),y=K(I.PolylinePipeline.generateArc({positions:G,granularity:l,ellipsoid:o}),E,c,y,o,i,1),E=R.Cartesian3.cross(p,m,E),E=R.Cartesian3.normalize(E,E),v=R.Cartesian3.add(w,R.Cartesian3.multiplyByScalar(E,d,v),v),C===V.ROUNDED||C===V.BEVELED?$(w,x,v,C,A,o,y,c,B+u,t):y=J(b,f=R.Cartesian3.negate(f,f),c,y,o,B+u,S,D)):(w=R.Cartesian3.add(b,R.Cartesian3.multiplyByScalar(f,S*d,f),w),x=R.Cartesian3.add(w,R.Cartesian3.multiplyByScalar(E,-d,x),x),G[0]=R.Cartesian3.clone(P,G[0]),G[1]=R.Cartesian3.clone(x,G[1]),i=k(G,T+u,B+u,l),y=K(I.PolylinePipeline.generateArc({positions:G,granularity:l,ellipsoid:o}),E,c,y,o,i,1),E=R.Cartesian3.cross(p,m,E),E=R.Cartesian3.normalize(E,E),v=R.Cartesian3.add(w,R.Cartesian3.multiplyByScalar(E,-d,v),v),C===V.ROUNDED||C===V.BEVELED?$(w,x,v,C,A,o,y,c,B+u,t):y=J(b,f,c,y,o,B+u,S,D)),P=R.Cartesian3.clone(v,P),h=R.Cartesian3.negate(m,h)):(y=J(P,E,c,y,o,T+u,1,1),P=b),T=B,B=s[z+1],b=M)}G[0]=R.Cartesian3.clone(P,G[0]),G[1]=R.Cartesian3.clone(b,G[1]),i=k(G,T+u,B+u,l),y=K(I.PolylinePipeline.generateArc({positions:G,granularity:l,ellipsoid:o}),E,c,y,o,i,1),t&&(a=J(b,E,n,a,o,B+u,1,1));g=y.length,r=t?g+a.length:g,n=new Float64Array(r);return n.set(y),t&&n.set(a,g),n},e.CornerType=V,e.PolylineVolumeGeometryLibrary=W,e.oneTimeWarning=N});
@@ -0,0 +1 @@
1
+ define(["exports","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./Matrix2-59fd2efe","./GeometryAttribute-3dd6da35","./GeometryAttributes-5ce4955a","./GeometryPipeline-990a755f","./IndexDatatype-6902a37d","./WebMercatorProjection-329b047d"],function(e,w,A,V,t,D,P,k,O,C,f){function c(e,t,r){e=V.defaultValue(e,0),t=V.defaultValue(t,0),r=V.defaultValue(r,0),this.value=new Float32Array([e,t,r])}Object.defineProperties(c.prototype,{componentDatatype:{get:function(){return A.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),c.fromCartesian3=function(e){return new c(e.x,e.y,e.z)},c.toValue=function(e,t){return(t=V.defined(t)?t:new Float32Array([e.x,e.y,e.z]))[0]=e.x,t[1]=e.y,t[2]=e.z,t};var o={isGeographic:function(e){return e.isGeographic&&e.isGeographic()}};function M(e,t){for(var e=e.attributes,r=e.position,n=r.values.length/r.componentsPerAttribute,i=(e.batchId=new P.GeometryAttribute({componentDatatype:A.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(n)}),e.batchId.values),o=0;o<n;++o)i[o]=t}function l(e){var t=e.instances,r=e.projection,n=e.elementIndexUintSupported,i=e.scene3DOnly,o=e.vertexCacheOptimize,a=e.compressVertices,e=e.modelMatrix,s=t.length;for(C=0;C<s;++C)if(V.defined(t[C].geometry)){t[C].geometry.primitiveType;break}var d=t,p=!i,u=d.length;if(!p&&1<u)for(var f=d[0].modelMatrix,c=1;c<u;++c)if(!D.Matrix4.equals(f,d[c].modelMatrix)){p=!0;break}if(p)for(c=0;c<u;++c)V.defined(d[c].geometry)&&O.GeometryPipeline.transformToWorldCoordinates(d[c]);else D.Matrix4.multiplyTransformation(e,d[0].modelMatrix,e);if(!i)for(C=0;C<s;++C)V.defined(t[C].geometry)&&O.GeometryPipeline.splitLongitude(t[C]);for(var m=t,h=m.length,l=0;l<h;++l){var g=m[l];V.defined(g.geometry)?M(g.geometry,l):V.defined(g.westHemisphereGeometry)&&V.defined(g.eastHemisphereGeometry)&&(M(g.westHemisphereGeometry,l),M(g.eastHemisphereGeometry,l))}if(o)for(C=0;C<s;++C){var y=t[C];V.defined(y.geometry)?(O.GeometryPipeline.reorderForPostVertexCache(y.geometry),O.GeometryPipeline.reorderForPreVertexCache(y.geometry)):V.defined(y.westHemisphereGeometry)&&V.defined(y.eastHemisphereGeometry)&&(O.GeometryPipeline.reorderForPostVertexCache(y.westHemisphereGeometry),O.GeometryPipeline.reorderForPreVertexCache(y.westHemisphereGeometry),O.GeometryPipeline.reorderForPostVertexCache(y.eastHemisphereGeometry),O.GeometryPipeline.reorderForPreVertexCache(y.eastHemisphereGeometry))}var b=O.GeometryPipeline.combineInstances(t);for(s=b.length,C=0;C<s;++C){var v,G,x,S,P=(v=b[C]).attributes;if(i)for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&O.GeometryPipeline.encodeAttribute(v,G,G+"3DHigh",G+"3DLow");else for(G in P)P.hasOwnProperty(G)&&P[G].componentDatatype===A.ComponentDatatype.DOUBLE&&(O.GeometryPipeline.projectTo2D(v,G,x=G+"3D",S=G+"2D",r),V.defined(v.boundingSphere)&&"position"===G&&(v.boundingSphereCV=w.BoundingSphere.fromVertices(v.attributes.position2D.values)),O.GeometryPipeline.encodeAttribute(v,x,x+"High",x+"Low"),O.GeometryPipeline.encodeAttribute(v,S,S+"High",S+"Low"));a&&O.GeometryPipeline.compressVertices(v)}if(!n){for(var k=[],s=b.length,C=0;C<s;++C)v=b[C],k=k.concat(O.GeometryPipeline.fitToUnsignedShortIndices(v));b=k}return b}function g(e,t,r,n){for(var i,o,a,s=n.length-1,d=(a=(0<=s?(i=(s=n[s]).offset+s.count,r[o=s.index]):r[o=i=0]).indices.length,e.length),p=0;p<d;++p){var u=e[p][t];V.defined(u)&&(a<i+(u=u.indices.length)&&(i=0,a=r[++o].indices.length),n.push({index:o,offset:i,count:u}),i+=u)}}var m={};function i(e,t){for(var r=e.length,n=0;n<r;++n){o=i=d=s=a=void 0;var i,o,a=e[n],s=t,d=a.attributes;for(i in d)d.hasOwnProperty(i)&&(o=d[i],V.defined(o))&&V.defined(o.values)&&s.push(o.values.buffer);V.defined(a.indices)&&s.push(a.indices.buffer)}}function a(e){var t=e.length,r=1+(w.BoundingSphere.packedLength+1)*t,n=new Float32Array(r),i=0;n[i++]=t;for(var o=0;o<t;++o){var a=e[o];V.defined(a)?(n[i++]=1,w.BoundingSphere.pack(e[o],n,i)):n[i++]=0,i+=w.BoundingSphere.packedLength}return n}function r(e){for(var t=new Array(e[0]),r=0,n=1;n<e.length;)1===e[n++]&&(t[r]=w.BoundingSphere.unpack(e,n)),++r,n+=w.BoundingSphere.packedLength;return t}m.combineGeometry=function(e){for(var t,r,n,i,o,a,s=e.instances,d=s.length,p=!1,u=(0<d&&(0<(t=l(e)).length&&(r=O.GeometryPipeline.createAttributeLocations(t[0]),e.createPickOffsets)&&(g(i=s,"geometry",o=t,a=[]),g(i,"westHemisphereGeometry",o,a),g(i,"eastHemisphereGeometry",o,a),i=a),V.defined(s[0].attributes))&&V.defined(s[0].attributes.offset)&&(n=new Array(d),p=!0),new Array(d)),f=new Array(d),c=0;c<d;++c){var m=s[c],h=m.geometry,h=(V.defined(h)&&(u[c]=h.boundingSphere,f[c]=h.boundingSphereCV,p)&&(n[c]=m.geometry.offsetAttribute),m.eastHemisphereGeometry),m=m.westHemisphereGeometry;V.defined(h)&&V.defined(m)&&(V.defined(h.boundingSphere)&&V.defined(m.boundingSphere)&&(u[c]=w.BoundingSphere.union(h.boundingSphere,m.boundingSphere)),V.defined(h.boundingSphereCV))&&V.defined(m.boundingSphereCV)&&(f[c]=w.BoundingSphere.union(h.boundingSphereCV,m.boundingSphereCV))}return{geometries:t,modelMatrix:e.modelMatrix,attributeLocations:r,pickOffsets:i,offsetInstanceExtend:n,boundingSpheres:u,boundingSpheresCV:f}},m.packCreateGeometryResults=function(e,t){var r=new Float64Array(function(e){for(var t=1,r=e.length,n=0;n<r;n++){var i=e[n];if(++t,V.defined(i)){var o,a=i.attributes;for(o in t+=7+2*w.BoundingSphere.packedLength+(V.defined(i.indices)?i.indices.length:0),a)a.hasOwnProperty(o)&&V.defined(a[o])&&(t+=5+a[o].values.length)}}return t}(e)),n=[],i={},o=e.length,a=0;r[a++]=o;for(var s=0;s<o;s++){var d=e[s],p=V.defined(d);if(r[a++]=p?1:0,p){r[a++]=d.primitiveType,r[a++]=d.geometryType,r[a++]=V.defaultValue(d.offsetAttribute,-1);var u,p=V.defined(d.boundingSphere)?1:0,p=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphere,r,a),a+=w.BoundingSphere.packedLength,V.defined(d.boundingSphereCV)?1:0),f=((r[a++]=p)&&w.BoundingSphere.pack(d.boundingSphereCV,r,a),a+=w.BoundingSphere.packedLength,d.attributes),c=[];for(u in f)f.hasOwnProperty(u)&&V.defined(f[u])&&(c.push(u),V.defined(i[u])||(i[u]=n.length,n.push(u)));r[a++]=c.length;for(var m=0;m<c.length;m++){var h=c[m],l=f[h];r[a++]=i[h],r[a++]=l.componentDatatype,r[a++]=l.componentsPerAttribute,r[a++]=l.normalize?1:0,r[a++]=l.values.length,r.set(l.values,a),a+=l.values.length}p=V.defined(d.indices)?d.indices.length:0;0<(r[a++]=p)&&(r.set(d.indices,a),a+=p)}}return t.push(r.buffer),{stringTable:n,packedData:r}},m.unpackCreateGeometryResults=function(e){for(var t=e.stringTable,r=e.packedData,n=new Array(r[0]),i=0,o=1;o<r.length;)if(1===r[o++]){var a,s,d=r[o++],p=r[o++],u=r[o++];-1===u&&(u=void 0),1===r[o++]&&(a=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;1===r[o++]&&(s=w.BoundingSphere.unpack(r,o)),o+=w.BoundingSphere.packedLength;var f=new k.GeometryAttributes,c=r[o++];for(S=0;S<c;S++){for(var m=t[r[o++]],h=r[o++],l=r[o++],g=0!==r[o++],y=r[o++],b=A.ComponentDatatype.createTypedArray(h,y),v=0;v<y;v++)b[v]=r[o++];f[m]=new P.GeometryAttribute({componentDatatype:h,componentsPerAttribute:l,normalize:g,values:b})}if(0<(y=r[o++]))for(var G=b.length/l,x=C.IndexDatatype.createTypedArray(G,y),S=0;S<y;S++)x[S]=r[o++];n[i++]=new P.Geometry({primitiveType:d,geometryType:p,boundingSphere:a,boundingSphereCV:s,indices:x,attributes:f,offsetAttribute:u})}else n[i++]=void 0;return n},m.packCombineGeometryParameters=function(e,t){for(var r=e.createGeometryResults,n=r.length,i=0;i<n;i++)t.push(r[i].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:function(e,t){var r=e.length,n=new Float64Array(1+19*r),i=0;n[i++]=r;for(var o=0;o<r;o++){var a=e[o];D.Matrix4.pack(a.modelMatrix,n,i),i+=D.Matrix4.packedLength,V.defined(a.attributes)&&V.defined(a.attributes.offset)&&(a=a.attributes.offset.value,n[i]=a[0],n[i+1]=a[1],n[i+2]=a[2]),i+=3}return t.push(n.buffer),n}(e.instances,t),ellipsoid:e.ellipsoid,isGeographic:o.isGeographic(e.projection),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},m.unpackCombineGeometryParameters=function(e){for(var t=function(e){for(var t=e,r=new Array(t[0]),n=0,i=1;i<t.length;){var o,a=D.Matrix4.unpack(t,i);i+=D.Matrix4.packedLength,V.defined(t[i])&&(o={offset:new c(t[i],t[i+1],t[i+2])}),i+=3,r[n++]={modelMatrix:a,attributes:o}}return r}(e.packedInstances),r=e.createGeometryResults,n=r.length,i=0,o=0;o<n;o++)for(var a=m.unpackCreateGeometryResults(r[o]),s=a.length,d=0;d<s;d++){var p=a[d];t[i].geometry=p,++i}var u=D.Ellipsoid.clone(e.ellipsoid);return{instances:t,ellipsoid:u,projection:new(e.isGeographic?w.GeographicProjection:f.WebMercatorProjection)(u),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:D.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},m.packCombineGeometryResults=function(e,t){V.defined(e.geometries)&&i(e.geometries,t);var r=a(e.boundingSpheres),n=a(e.boundingSpheresCV);return t.push(r.buffer,n.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r,boundingSpheresCV:n}},m.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:r(e.boundingSpheres),boundingSpheresCV:r(e.boundingSpheresCV)}},e.PrimitivePipeline=m});
@@ -0,0 +1 @@
1
+ define(["exports","./Matrix2-59fd2efe","./when-ae2e0b60","./RuntimeError-24b14c10","./Transforms-c1a1d063","./ComponentDatatype-b7b5db18"],function(n,m,d,t,a,X){var w=Math.cos,M=Math.sin,Y=Math.sqrt,r={computePosition:function(n,t,a,r,e,o,s){var t=t.radiiSquared,i=n.nwCorner,g=n.boundingRectangle,h=i.latitude-n.granYCos*r+e*n.granXSin,u=w(h),c=M(h),C=t.z*c,i=i.longitude+r*n.granYSin+e*n.granXCos,l=u*w(i),u=u*M(i),S=t.x*l,t=t.y*u,l=Y(S*l+t*u+C*c);o.x=S/l,o.y=t/l,o.z=C/l,a&&(u=n.stNwCorner,d.defined(u)?(h=u.latitude-n.stGranYCos*r+e*n.stGranXSin,i=u.longitude+r*n.stGranYSin+e*n.stGranXCos,s.x=(i-n.stWest)*n.lonScalar,s.y=(h-n.stSouth)*n.latScalar):(s.x=(i-g.west)*n.lonScalar,s.y=(h-g.south)*n.latScalar))}},l=new m.Matrix2,S=new m.Cartesian3,p=new m.Cartographic,x=new m.Cartesian3,R=new a.GeographicProjection;function f(n,t,a,r,e,o,s){var i=Math.cos(t),g=r*i,i=a*i,h=Math.sin(t),r=r*h,a=a*h,h=(S=R.project(n,S),S=m.Cartesian3.subtract(S,x,S),m.Matrix2.fromRotation(t,l)),t=(S=m.Matrix2.multiplyByVector(h,S,S),S=m.Cartesian3.add(S,x,S),(n=R.unproject(S,n)).latitude),h=t+--o*a,u=t-g*--s,c=t-g*s+o*a,C=Math.max(t,h,u,c),t=Math.min(t,h,u,c),h=n.longitude,u=h+o*i,c=h+s*r,s=h+s*r+o*i;return{north:C,south:t,east:Math.max(h,u,c,s),west:Math.min(h,u,c,s),granYCos:g,granYSin:r,granXCos:i,granXSin:a,nwCorner:n}}r.computeOptions=function(n,t,a,r,e,o,s){var i=n.east,g=n.west,h=n.north,u=n.south,c=!1,C=!1,l=(h===X.CesiumMath.PI_OVER_TWO&&(c=!0),u===-X.CesiumMath.PI_OVER_TWO&&(C=!0),h-u),S=i<g?X.CesiumMath.TWO_PI-g+i:i-g,d=Math.ceil(S/t)+1,t=Math.ceil(l/t)+1,S=S/(d-1),l=l/(t-1),o=m.Rectangle.northwest(n,o),w=m.Rectangle.center(n,p),w=(0===a&&0===r||(w.longitude<o.longitude&&(w.longitude+=X.CesiumMath.TWO_PI),x=R.project(w,x)),l),M=S,n=m.Rectangle.clone(n,e),e={granYCos:w,granYSin:0,granXCos:M,granXSin:0,nwCorner:o,boundingRectangle:n,width:d,height:t,northCap:c,southCap:C};return 0!==a&&(h=(w=f(o,a,S,l,0,d,t)).north,u=w.south,i=w.east,g=w.west,e.granYCos=w.granYCos,e.granYSin=w.granYSin,e.granXCos=w.granXCos,e.granXSin=w.granXSin,n.north=h,n.south=u,n.east=i,n.west=g),0!==r&&(a-=r,c=f(M=m.Rectangle.northwest(n,s),a,S,l,0,d,t),e.stGranYCos=c.granYCos,e.stGranXCos=c.granXCos,e.stGranYSin=c.granYSin,e.stGranXSin=c.granXSin,e.stNwCorner=M,e.stWest=c.west,e.stSouth=c.south),e},n.RectangleGeometryLibrary=r});
@@ -0,0 +1 @@
1
+ define(["exports","./Transforms-c1a1d063","./Matrix2-59fd2efe","./RuntimeError-24b14c10","./when-ae2e0b60","./AttributeCompression-2f7b45b7","./ComponentDatatype-b7b5db18"],function(e,r,f,G,p,l,h){function t(e,t){this._ellipsoid=e,this._cameraPosition=new f.Cartesian3,this._cameraPositionInScaledSpace=new f.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,p.defined(t)&&(this.cameraPosition=t)}Object.defineProperties(t.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=f.Cartesian3.magnitudeSquared(t)-1;f.Cartesian3.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var a=new f.Cartesian3,o=(t.prototype.isPointVisible=function(e){return S(this._ellipsoid.transformPositionToScaledSpace(e,a),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},t.prototype.isScaledSpacePointVisible=function(e){return S(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},new f.Cartesian3),n=(t.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){var i,a=this._ellipsoid,a=p.defined(t)&&t<0&&a.minimumRadius>-t?((i=o).x=this._cameraPosition.x/(a.radii.x+t),i.y=this._cameraPosition.y/(a.radii.y+t),i.z=this._cameraPosition.z/(a.radii.z+t),i.x*i.x+i.y*i.y+i.z*i.z-1):(i=this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared);return S(e,i,a)},t.prototype.computeHorizonCullingPoint=function(e,t,i){return u(this._ellipsoid,e,t,i)},f.Ellipsoid.clone(f.Ellipsoid.UNIT_SPHERE)),s=(t.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,a){return u(d(this._ellipsoid,i,n),e,t,a)},t.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,a,r){return x(this._ellipsoid,e,t,i,a,r)},t.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,a,r,o){return x(d(this._ellipsoid,r,n),e,t,i,a,o)},[]),c=(t.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){var e=f.Rectangle.subsample(e,t,0,s),a=r.BoundingSphere.fromPoints(e);if(!(f.Cartesian3.magnitude(a.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(a.center,e,i)},new f.Cartesian3);function d(e,t,i){return p.defined(t)&&t<0&&e.minimumRadius>-t&&(t=f.Cartesian3.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,c),e=f.Ellipsoid.fromCartesian3(t,i)),e}function u(e,t,i,a){p.defined(a)||(a=new f.Cartesian3);for(var r=b(e,t),o=0,n=0,s=i.length;n<s;++n){var c=y(e,i[n],r);if(c<0)return;o=Math.max(o,c)}return N(r,o,a)}var m=new f.Cartesian3;function x(e,t,i,a,r,o){p.defined(o)||(o=new f.Cartesian3),a=p.defaultValue(a,3),r=p.defaultValue(r,f.Cartesian3.ZERO);for(var n=b(e,t),s=0,c=0,d=i.length;c<d;c+=a){m.x=i[c]+r.x,m.y=i[c+1]+r.y,m.z=i[c+2]+r.z;var u=y(e,m,n);if(u<0)return;s=Math.max(s,u)}return N(n,s,o)}function S(e,t,i){e=f.Cartesian3.subtract(e,t,a),t=-f.Cartesian3.dot(e,t);return!(i<0?0<t:i<t&&t*t/f.Cartesian3.magnitudeSquared(e)>i)}var C=new f.Cartesian3,g=new f.Cartesian3;function y(e,t,i){var e=e.transformPositionToScaledSpace(t,C),t=f.Cartesian3.magnitudeSquared(e),a=Math.sqrt(t),e=f.Cartesian3.divideByScalar(e,a,g),t=Math.max(1,t),a=1/Math.max(1,a);return 1/(f.Cartesian3.dot(e,i)*a-f.Cartesian3.magnitude(f.Cartesian3.cross(e,i,e))*(Math.sqrt(t-1)*a))}function N(e,t,i){if(!(t<=0||t===1/0||t!=t))return f.Cartesian3.multiplyByScalar(e,t,i)}var i=new f.Cartesian3;function b(e,t){return f.Cartesian3.equals(t,f.Cartesian3.ZERO)?t:(e.transformPositionToScaledSpace(t,i),f.Cartesian3.normalize(i,i))}var M={getHeight:function(e,t,i){return(e-i)*t+i}},T=new f.Cartesian3,P=(M.getPosition=function(e,t,i,a,r){e=t.cartesianToCartographic(e,T),i=M.getHeight(e.height,i,a);return f.Cartesian3.fromRadians(e.longitude,e.latitude,i,t,r)},Object.freeze({NONE:0,BITS12:1})),z=new f.Cartesian3,_=new f.Cartesian3,E=new f.Cartesian2,v=new f.Matrix4,H=new f.Matrix4,w=Math.pow(2,12);function A(e,t,i,a,r,o,n,s,c,d){var u,m,l,h=P.NONE;p.defined(t)&&p.defined(i)&&p.defined(a)&&p.defined(r)&&(l=t.minimum,t=f.Cartesian3.subtract(t.maximum,l,_),u=a-i,h=Math.max(f.Cartesian3.maximumComponent(t),u)<w-1?P.BITS12:P.NONE,u=f.Matrix4.inverseTransformation(r,new f.Matrix4),m=f.Cartesian3.negate(l,z),f.Matrix4.multiply(f.Matrix4.fromTranslation(m,v),u,u),(m=z).x=1/t.x,m.y=1/t.y,m.z=1/t.z,f.Matrix4.multiply(f.Matrix4.fromScale(m,v),u,u),m=f.Matrix4.clone(r),f.Matrix4.setTranslation(m,f.Cartesian3.ZERO,m),r=f.Matrix4.clone(r,new f.Matrix4),l=f.Matrix4.fromTranslation(l,v),t=f.Matrix4.fromScale(t,H),l=f.Matrix4.multiply(l,t,v),f.Matrix4.multiply(r,l,r),f.Matrix4.multiply(m,l,m)),this.quantization=h,this.minimumHeight=i,this.maximumHeight=a,this.center=f.Cartesian3.clone(e),this.toScaledENU=u,this.fromScaledENU=r,this.matrix=m,this.hasVertexNormals=o,this.hasWebMercatorT=p.defaultValue(n,!1),this.hasGeodeticSurfaceNormals=p.defaultValue(s,!1),this.exaggeration=p.defaultValue(c,1),this.exaggerationRelativeHeight=p.defaultValue(d,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}A.prototype.encode=function(e,t,i,a,r,o,n,s){var c,d,u,m=a.x,a=a.y;return this.quantization===P.BITS12?((i=f.Matrix4.multiplyByPoint(this.toScaledENU,i,z)).x=h.CesiumMath.clamp(i.x,0,1),i.y=h.CesiumMath.clamp(i.y,0,1),i.z=h.CesiumMath.clamp(i.z,0,1),c=this.maximumHeight-this.minimumHeight,c=h.CesiumMath.clamp((r-this.minimumHeight)/c,0,1),f.Cartesian2.fromElements(i.x,i.y,E),u=l.AttributeCompression.compressTextureCoordinates(E),f.Cartesian2.fromElements(i.z,c,E),c=l.AttributeCompression.compressTextureCoordinates(E),f.Cartesian2.fromElements(m,a,E),d=l.AttributeCompression.compressTextureCoordinates(E),e[t++]=u,e[t++]=c,e[t++]=d,this.hasWebMercatorT&&(f.Cartesian2.fromElements(n,0,E),u=l.AttributeCompression.compressTextureCoordinates(E),e[t++]=u)):(f.Cartesian3.subtract(i,this.center,z),e[t++]=z.x,e[t++]=z.y,e[t++]=z.z,e[t++]=r,e[t++]=m,e[t++]=a,this.hasWebMercatorT&&(e[t++]=n)),this.hasVertexNormals&&(e[t++]=l.AttributeCompression.octPackFloat(o)),this.hasGeodeticSurfaceNormals&&(e[t++]=s.x,e[t++]=s.y,e[t++]=s.z),t};var O=new f.Cartesian3,I=new f.Cartesian3,q=(A.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(!this.hasGeodeticSurfaceNormals)for(var a=this.stride,r=e.length/a,o=(this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets(),this.stride),n=0;n<r;n++){for(var s=0;s<a;s++)t[n*o+s]=e[n*a+s];var c=this.decodePosition(t,n,O),c=i.geodeticSurfaceNormal(c,I),d=n*o+this._offsetGeodeticSurfaceNormal;t[d]=c.x,t[d+1]=c.y,t[d+2]=c.z}},A.prototype.removeGeodeticSurfaceNormals=function(e,t){if(this.hasGeodeticSurfaceNormals)for(var i=this.stride,a=e.length/i,r=(this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets(),this.stride),o=0;o<a;o++)for(var n=0;n<r;n++)t[o*r+n]=e[o*i+n]},A.prototype.decodePosition=function(e,t,i){var a;return p.defined(i)||(i=new f.Cartesian3),t*=this.stride,this.quantization===P.BITS12?(a=l.AttributeCompression.decompressTextureCoordinates(e[t],E),i.x=a.x,i.y=a.y,a=l.AttributeCompression.decompressTextureCoordinates(e[t+1],E),i.z=a.x,f.Matrix4.multiplyByPoint(this.fromScaledENU,i,i)):(i.x=e[t],i.y=e[t+1],i.z=e[t+2],f.Cartesian3.add(i,this.center,i))},A.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);var a,r=this.exaggeration,o=this.exaggerationRelativeHeight;return 1!==r&&this.hasGeodeticSurfaceNormals&&(a=this.decodeGeodeticSurfaceNormal(e,t,I),e=this.decodeHeight(e,t),t=M.getHeight(e,r,o)-e,i.x+=a.x*t,i.y+=a.y*t,i.z+=a.z*t),i},A.prototype.decodeTextureCoordinates=function(e,t,i){return p.defined(i)||(i=new f.Cartesian2),t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+2],i):f.Cartesian2.fromElements(e[t+4],e[t+5],i)},A.prototype.decodeHeight=function(e,t){return t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+1],E).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},A.prototype.decodeWebMercatorT=function(e,t){return t*=this.stride,this.quantization===P.BITS12?l.AttributeCompression.decompressTextureCoordinates(e[t+3],E).x:e[t+6]},A.prototype.getOctEncodedNormal=function(e,t,i){e=e[t=t*this.stride+this._offsetVertexNormal]/256,t=Math.floor(e);return f.Cartesian2.fromElements(t,256*(e-t),i)},A.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},A.prototype._calculateStrideAndOffsets=function(){var e=0;this.quantization===P.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e},{position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2}),V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};A.prototype.getAttributes=function(i){var e,t,a=h.ComponentDatatype.FLOAT,r=h.ComponentDatatype.getSizeInBytes(a),o=this.stride*r,n=0,s=[];function c(e,t){s.push({index:e,vertexBuffer:i,componentDatatype:a,componentsPerAttribute:t,offsetInBytes:n,strideInBytes:o}),n+=t*r}return this.quantization===P.NONE?(c(q.position3DAndHeight,4),e=2,e=(e+=this.hasWebMercatorT?1:0)+(this.hasVertexNormals?1:0),c(q.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&c(q.geodeticSurfaceNormal,3)):(e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals,c(V.compressed0,e?4:3),t&&c(V.compressed1,1),this.hasGeodeticSurfaceNormals&&c(V.geodeticSurfaceNormal,3)),s},A.prototype.getAttributeLocations=function(){return this.quantization===P.NONE?q:V},A.clone=function(e,t){if(p.defined(e))return(t=p.defined(t)?t:new A).quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=f.Cartesian3.clone(e.center),t.toScaledENU=f.Matrix4.clone(e.toScaledENU),t.fromScaledENU=f.Matrix4.clone(e.fromScaledENU),t.matrix=f.Matrix4.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t},e.EllipsoidalOccluder=t,e.TerrainEncoding=A});