create-swdg-frontend 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/bin/index.js +248 -0
- package/package.json +29 -0
- package/template/.husky/commit-msg +42 -0
- package/template/.husky/pre-commit +2 -0
- package/template/.husky/prepare-commit-msg +1 -0
- package/template/.lintstagedrc +5 -0
- package/template/.prettierignore +26 -0
- package/template/.prettierrc.cjs +10 -0
- package/template/.stylelintignore +1 -0
- package/template/.stylelintrc.json +6 -0
- package/template/README.md +36 -0
- package/template/commitlint.config.cjs +64 -0
- package/template/eslint.config.js +96 -0
- package/template/index.html +17 -0
- package/template/interface/user.ts +5 -0
- package/template/package.json +84 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
- package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
- package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
- package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
- package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
- package/template/public/Cesium1.119/Cesium.js +185772 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
- package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
- package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
- package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
- package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
- package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
- package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
- package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
- package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
- package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
- package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
- package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
- package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
- package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
- package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
- package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
- package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
- package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
- package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
- package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
- package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
- package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
- package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
- package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
- package/template/public/Cesium1.119/Widgets/shared.css +103 -0
- package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
- package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
- package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
- package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
- package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
- package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
- package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
- package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
- package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
- package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
- package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
- package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
- package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
- package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
- package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
- package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
- package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
- package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
- package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
- package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
- package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
- package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
- package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
- package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
- package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
- package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
- package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
- package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
- package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
- package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
- package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
- package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
- package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
- package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
- package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
- package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
- package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
- package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
- package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
- package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
- package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
- package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
- package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
- package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
- package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
- package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
- package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
- package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
- package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
- package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
- package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
- package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
- package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
- package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
- package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
- package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
- package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
- package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
- package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
- package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
- package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
- package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
- package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
- package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
- package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
- package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
- package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
- package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
- package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
- package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
- package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
- package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
- package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
- package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
- package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
- package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
- package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
- package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
- package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
- package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
- package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
- package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
- package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
- package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
- package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
- package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
- package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
- package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
- package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
- package/template/public/Cesium1.119/index.cjs +185632 -0
- package/template/public/Cesium1.119/index.js +182874 -0
- package/template/public/vite.svg +1 -0
- package/template/scripts/gen-api.cjs +178 -0
- package/template/src/App.vue +6 -0
- package/template/src/api/README.md +3 -0
- package/template/src/assets/favicon.svg +49 -0
- package/template/src/components/Body/index.vue +16 -0
- package/template/src/components/Header/index.vue +8 -0
- package/template/src/directive/focus.ts +9 -0
- package/template/src/layout/BasicLayout.vue +28 -0
- package/template/src/main.ts +33 -0
- package/template/src/router/index.ts +24 -0
- package/template/src/stores/README.md +3 -0
- package/template/src/stores/useCounter.ts +12 -0
- package/template/src/styles/alerts.less +85 -0
- package/template/src/styles/global.css +326 -0
- package/template/src/utils/alert.ts +58 -0
- package/template/src/utils/components.ts +21 -0
- package/template/src/utils/composables/useAlert.ts +14 -0
- package/template/src/views/Test/index.vue +23 -0
- package/template/src/views/index.vue +9 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/swdg/bin/index.js +23 -0
- package/template/swdg/package.json +27 -0
- package/template/tests/README.md +6 -0
- package/template/tests/e2e/README.md +3 -0
- package/template/tests/setup.ts +1 -0
- package/template/tests/unit/example.test.ts +7 -0
- package/template/tests/utils/helpers.ts +1 -0
- package/template/tsconfig.json +51 -0
- package/template/tsconfig.node.json +11 -0
- package/template/types/README.md +3 -0
- package/template/types/global.d.ts +9 -0
- package/template/vite.config.ts +75 -0
- package/template/vitest.config.ts +9 -0
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.119
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { c as Z } from "./chunk-TMSETF7M.js";
|
|
27
|
+
import { a as o, b as ft, e as b } from "./chunk-POASMU2N.js";
|
|
28
|
+
import { a as R } from "./chunk-R6KGAEF6.js";
|
|
29
|
+
import { a as H } from "./chunk-IUA6FAOZ.js";
|
|
30
|
+
import { a as w, b as et } from "./chunk-UH2WFNTA.js";
|
|
31
|
+
import { e as g } from "./chunk-PEYJTJPE.js";
|
|
32
|
+
var nt = {};
|
|
33
|
+
nt.computeDiscriminant = function (t, e, r) {
|
|
34
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
35
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
36
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
37
|
+
return e * e - 4 * t * r;
|
|
38
|
+
};
|
|
39
|
+
function mt(t, e, r) {
|
|
40
|
+
let n = t + e;
|
|
41
|
+
return R.sign(t) !== R.sign(e) &&
|
|
42
|
+
Math.abs(n / Math.max(Math.abs(t), Math.abs(e))) < r
|
|
43
|
+
? 0
|
|
44
|
+
: n;
|
|
45
|
+
}
|
|
46
|
+
nt.computeRealRoots = function (t, e, r) {
|
|
47
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
48
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
49
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
50
|
+
let n;
|
|
51
|
+
if (t === 0) return e === 0 ? [] : [-r / e];
|
|
52
|
+
if (e === 0) {
|
|
53
|
+
if (r === 0) return [0, 0];
|
|
54
|
+
let a = Math.abs(r),
|
|
55
|
+
f = Math.abs(t);
|
|
56
|
+
if (a < f && a / f < R.EPSILON14) return [0, 0];
|
|
57
|
+
if (a > f && f / a < R.EPSILON14) return [];
|
|
58
|
+
if (((n = -r / t), n < 0)) return [];
|
|
59
|
+
let l = Math.sqrt(n);
|
|
60
|
+
return [-l, l];
|
|
61
|
+
} else if (r === 0) return ((n = -e / t), n < 0 ? [n, 0] : [0, n]);
|
|
62
|
+
let i = e * e,
|
|
63
|
+
c = 4 * t * r,
|
|
64
|
+
s = mt(i, -c, R.EPSILON14);
|
|
65
|
+
if (s < 0) return [];
|
|
66
|
+
let u = -0.5 * mt(e, R.sign(e) * Math.sqrt(s), R.EPSILON14);
|
|
67
|
+
return e > 0 ? [u / t, r / u] : [r / u, u / t];
|
|
68
|
+
};
|
|
69
|
+
var T = nt;
|
|
70
|
+
var ot = {};
|
|
71
|
+
ot.computeDiscriminant = function (t, e, r, n) {
|
|
72
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
73
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
74
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
75
|
+
if (typeof n != "number") throw new w("d is a required number.");
|
|
76
|
+
let i = t * t,
|
|
77
|
+
c = e * e,
|
|
78
|
+
s = r * r,
|
|
79
|
+
u = n * n;
|
|
80
|
+
return 18 * t * e * r * n + c * s - 27 * i * u - 4 * (t * s * r + c * e * n);
|
|
81
|
+
};
|
|
82
|
+
function rt(t, e, r, n) {
|
|
83
|
+
let i = t,
|
|
84
|
+
c = e / 3,
|
|
85
|
+
s = r / 3,
|
|
86
|
+
u = n,
|
|
87
|
+
a = i * s,
|
|
88
|
+
f = c * u,
|
|
89
|
+
l = c * c,
|
|
90
|
+
d = s * s,
|
|
91
|
+
p = i * s - l,
|
|
92
|
+
q = i * u - c * s,
|
|
93
|
+
m = c * u - d,
|
|
94
|
+
h = 4 * p * m - q * q,
|
|
95
|
+
E,
|
|
96
|
+
D;
|
|
97
|
+
if (h < 0) {
|
|
98
|
+
let X, k, G;
|
|
99
|
+
l * f >= a * d
|
|
100
|
+
? ((X = i), (k = p), (G = -2 * c * p + i * q))
|
|
101
|
+
: ((X = u), (k = m), (G = -u * q + 2 * s * m));
|
|
102
|
+
let at = -(G < 0 ? -1 : 1) * Math.abs(X) * Math.sqrt(-h);
|
|
103
|
+
D = -G + at;
|
|
104
|
+
let $ = D / 2,
|
|
105
|
+
j = $ < 0 ? -Math.pow(-$, 1 / 3) : Math.pow($, 1 / 3),
|
|
106
|
+
tt = D === at ? -j : -k / j;
|
|
107
|
+
return (
|
|
108
|
+
(E = k <= 0 ? j + tt : -G / (j * j + tt * tt + k)),
|
|
109
|
+
l * f >= a * d ? [(E - c) / i] : [-u / (E + s)]
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
let W = p,
|
|
113
|
+
V = -2 * c * p + i * q,
|
|
114
|
+
L = m,
|
|
115
|
+
B = -u * q + 2 * s * m,
|
|
116
|
+
I = Math.sqrt(h),
|
|
117
|
+
C = Math.sqrt(3) / 2,
|
|
118
|
+
P = Math.abs(Math.atan2(i * I, -V) / 3);
|
|
119
|
+
E = 2 * Math.sqrt(-W);
|
|
120
|
+
let y = Math.cos(P);
|
|
121
|
+
D = E * y;
|
|
122
|
+
let S = E * (-y / 2 - C * Math.sin(P)),
|
|
123
|
+
M = D + S > 2 * c ? D - c : S - c,
|
|
124
|
+
N = i,
|
|
125
|
+
x = M / N;
|
|
126
|
+
((P = Math.abs(Math.atan2(u * I, -B) / 3)),
|
|
127
|
+
(E = 2 * Math.sqrt(-L)),
|
|
128
|
+
(y = Math.cos(P)),
|
|
129
|
+
(D = E * y),
|
|
130
|
+
(S = E * (-y / 2 - C * Math.sin(P))));
|
|
131
|
+
let _ = -u,
|
|
132
|
+
A = D + S < 2 * s ? D + s : S + s,
|
|
133
|
+
v = _ / A,
|
|
134
|
+
yt = N * A,
|
|
135
|
+
ut = -M * A - N * _,
|
|
136
|
+
bt = M * _,
|
|
137
|
+
U = (s * ut - c * bt) / (-c * ut + s * yt);
|
|
138
|
+
return x <= U
|
|
139
|
+
? x <= v
|
|
140
|
+
? U <= v
|
|
141
|
+
? [x, U, v]
|
|
142
|
+
: [x, v, U]
|
|
143
|
+
: [v, x, U]
|
|
144
|
+
: x <= v
|
|
145
|
+
? [U, x, v]
|
|
146
|
+
: U <= v
|
|
147
|
+
? [U, v, x]
|
|
148
|
+
: [v, U, x];
|
|
149
|
+
}
|
|
150
|
+
ot.computeRealRoots = function (t, e, r, n) {
|
|
151
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
152
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
153
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
154
|
+
if (typeof n != "number") throw new w("d is a required number.");
|
|
155
|
+
let i, c;
|
|
156
|
+
if (t === 0) return T.computeRealRoots(e, r, n);
|
|
157
|
+
if (e === 0) {
|
|
158
|
+
if (r === 0) {
|
|
159
|
+
if (n === 0) return [0, 0, 0];
|
|
160
|
+
c = -n / t;
|
|
161
|
+
let s = c < 0 ? -Math.pow(-c, 1 / 3) : Math.pow(c, 1 / 3);
|
|
162
|
+
return [s, s, s];
|
|
163
|
+
} else if (n === 0)
|
|
164
|
+
return (
|
|
165
|
+
(i = T.computeRealRoots(t, 0, r)),
|
|
166
|
+
i.Length === 0 ? [0] : [i[0], 0, i[1]]
|
|
167
|
+
);
|
|
168
|
+
return rt(t, 0, r, n);
|
|
169
|
+
} else {
|
|
170
|
+
if (r === 0)
|
|
171
|
+
return n === 0
|
|
172
|
+
? ((c = -e / t), c < 0 ? [c, 0, 0] : [0, 0, c])
|
|
173
|
+
: rt(t, e, 0, n);
|
|
174
|
+
if (n === 0)
|
|
175
|
+
return (
|
|
176
|
+
(i = T.computeRealRoots(t, e, r)),
|
|
177
|
+
i.length === 0
|
|
178
|
+
? [0]
|
|
179
|
+
: i[1] <= 0
|
|
180
|
+
? [i[0], i[1], 0]
|
|
181
|
+
: i[0] >= 0
|
|
182
|
+
? [0, i[0], i[1]]
|
|
183
|
+
: [i[0], 0, i[1]]
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
return rt(t, e, r, n);
|
|
187
|
+
};
|
|
188
|
+
var F = ot;
|
|
189
|
+
var it = {};
|
|
190
|
+
it.computeDiscriminant = function (t, e, r, n, i) {
|
|
191
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
192
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
193
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
194
|
+
if (typeof n != "number") throw new w("d is a required number.");
|
|
195
|
+
if (typeof i != "number") throw new w("e is a required number.");
|
|
196
|
+
let c = t * t,
|
|
197
|
+
s = c * t,
|
|
198
|
+
u = e * e,
|
|
199
|
+
a = u * e,
|
|
200
|
+
f = r * r,
|
|
201
|
+
l = f * r,
|
|
202
|
+
d = n * n,
|
|
203
|
+
p = d * n,
|
|
204
|
+
q = i * i,
|
|
205
|
+
m = q * i;
|
|
206
|
+
return (
|
|
207
|
+
u * f * d -
|
|
208
|
+
4 * a * p -
|
|
209
|
+
4 * t * l * d +
|
|
210
|
+
18 * t * e * r * p -
|
|
211
|
+
27 * c * d * d +
|
|
212
|
+
256 * s * m +
|
|
213
|
+
i *
|
|
214
|
+
(18 * a * r * n -
|
|
215
|
+
4 * u * l +
|
|
216
|
+
16 * t * f * f -
|
|
217
|
+
80 * t * e * f * n -
|
|
218
|
+
6 * t * u * d +
|
|
219
|
+
144 * c * r * d) +
|
|
220
|
+
q * (144 * t * u * r - 27 * u * u - 128 * c * f - 192 * c * e * n)
|
|
221
|
+
);
|
|
222
|
+
};
|
|
223
|
+
function z(t, e, r, n) {
|
|
224
|
+
let i = t * t,
|
|
225
|
+
c = e - (3 * i) / 8,
|
|
226
|
+
s = r - (e * t) / 2 + (i * t) / 8,
|
|
227
|
+
u = n - (r * t) / 4 + (e * i) / 16 - (3 * i * i) / 256,
|
|
228
|
+
a = F.computeRealRoots(1, 2 * c, c * c - 4 * u, -s * s);
|
|
229
|
+
if (a.length > 0) {
|
|
230
|
+
let f = -t / 4,
|
|
231
|
+
l = a[a.length - 1];
|
|
232
|
+
if (Math.abs(l) < R.EPSILON14) {
|
|
233
|
+
let d = T.computeRealRoots(1, c, u);
|
|
234
|
+
if (d.length === 2) {
|
|
235
|
+
let p = d[0],
|
|
236
|
+
q = d[1],
|
|
237
|
+
m;
|
|
238
|
+
if (p >= 0 && q >= 0) {
|
|
239
|
+
let h = Math.sqrt(p),
|
|
240
|
+
E = Math.sqrt(q);
|
|
241
|
+
return [f - E, f - h, f + h, f + E];
|
|
242
|
+
} else {
|
|
243
|
+
if (p >= 0 && q < 0) return ((m = Math.sqrt(p)), [f - m, f + m]);
|
|
244
|
+
if (p < 0 && q >= 0) return ((m = Math.sqrt(q)), [f - m, f + m]);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return [];
|
|
248
|
+
} else if (l > 0) {
|
|
249
|
+
let d = Math.sqrt(l),
|
|
250
|
+
p = (c + l - s / d) / 2,
|
|
251
|
+
q = (c + l + s / d) / 2,
|
|
252
|
+
m = T.computeRealRoots(1, d, p),
|
|
253
|
+
h = T.computeRealRoots(1, -d, q);
|
|
254
|
+
return m.length !== 0
|
|
255
|
+
? ((m[0] += f),
|
|
256
|
+
(m[1] += f),
|
|
257
|
+
h.length !== 0
|
|
258
|
+
? ((h[0] += f),
|
|
259
|
+
(h[1] += f),
|
|
260
|
+
m[1] <= h[0]
|
|
261
|
+
? [m[0], m[1], h[0], h[1]]
|
|
262
|
+
: h[1] <= m[0]
|
|
263
|
+
? [h[0], h[1], m[0], m[1]]
|
|
264
|
+
: m[0] >= h[0] && m[1] <= h[1]
|
|
265
|
+
? [h[0], m[0], m[1], h[1]]
|
|
266
|
+
: h[0] >= m[0] && h[1] <= m[1]
|
|
267
|
+
? [m[0], h[0], h[1], m[1]]
|
|
268
|
+
: m[0] > h[0] && m[0] < h[1]
|
|
269
|
+
? [h[0], m[0], h[1], m[1]]
|
|
270
|
+
: [m[0], h[0], m[1], h[1]])
|
|
271
|
+
: m)
|
|
272
|
+
: h.length !== 0
|
|
273
|
+
? ((h[0] += f), (h[1] += f), h)
|
|
274
|
+
: [];
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return [];
|
|
278
|
+
}
|
|
279
|
+
function Y(t, e, r, n) {
|
|
280
|
+
let i = r * r,
|
|
281
|
+
c = e * e,
|
|
282
|
+
s = t * t,
|
|
283
|
+
u = -2 * e,
|
|
284
|
+
a = r * t + c - 4 * n,
|
|
285
|
+
f = s * n - r * e * t + i,
|
|
286
|
+
l = F.computeRealRoots(1, u, a, f);
|
|
287
|
+
if (l.length > 0) {
|
|
288
|
+
let d = l[0],
|
|
289
|
+
p = e - d,
|
|
290
|
+
q = p * p,
|
|
291
|
+
m = t / 2,
|
|
292
|
+
h = p / 2,
|
|
293
|
+
E = q - 4 * n,
|
|
294
|
+
D = q + 4 * Math.abs(n),
|
|
295
|
+
W = s - 4 * d,
|
|
296
|
+
V = s + 4 * Math.abs(d),
|
|
297
|
+
L,
|
|
298
|
+
B;
|
|
299
|
+
if (d < 0 || E * V < W * D) {
|
|
300
|
+
let N = Math.sqrt(W);
|
|
301
|
+
((L = N / 2), (B = N === 0 ? 0 : (t * h - r) / N));
|
|
302
|
+
} else {
|
|
303
|
+
let N = Math.sqrt(E);
|
|
304
|
+
((L = N === 0 ? 0 : (t * h - r) / N), (B = N / 2));
|
|
305
|
+
}
|
|
306
|
+
let I, C;
|
|
307
|
+
m === 0 && L === 0
|
|
308
|
+
? ((I = 0), (C = 0))
|
|
309
|
+
: R.sign(m) === R.sign(L)
|
|
310
|
+
? ((I = m + L), (C = d / I))
|
|
311
|
+
: ((C = m - L), (I = d / C));
|
|
312
|
+
let P, y;
|
|
313
|
+
h === 0 && B === 0
|
|
314
|
+
? ((P = 0), (y = 0))
|
|
315
|
+
: R.sign(h) === R.sign(B)
|
|
316
|
+
? ((P = h + B), (y = n / P))
|
|
317
|
+
: ((y = h - B), (P = n / y));
|
|
318
|
+
let S = T.computeRealRoots(1, I, P),
|
|
319
|
+
M = T.computeRealRoots(1, C, y);
|
|
320
|
+
if (S.length !== 0)
|
|
321
|
+
return M.length !== 0
|
|
322
|
+
? S[1] <= M[0]
|
|
323
|
+
? [S[0], S[1], M[0], M[1]]
|
|
324
|
+
: M[1] <= S[0]
|
|
325
|
+
? [M[0], M[1], S[0], S[1]]
|
|
326
|
+
: S[0] >= M[0] && S[1] <= M[1]
|
|
327
|
+
? [M[0], S[0], S[1], M[1]]
|
|
328
|
+
: M[0] >= S[0] && M[1] <= S[1]
|
|
329
|
+
? [S[0], M[0], M[1], S[1]]
|
|
330
|
+
: S[0] > M[0] && S[0] < M[1]
|
|
331
|
+
? [M[0], S[0], M[1], S[1]]
|
|
332
|
+
: [S[0], M[0], S[1], M[1]]
|
|
333
|
+
: S;
|
|
334
|
+
if (M.length !== 0) return M;
|
|
335
|
+
}
|
|
336
|
+
return [];
|
|
337
|
+
}
|
|
338
|
+
it.computeRealRoots = function (t, e, r, n, i) {
|
|
339
|
+
if (typeof t != "number") throw new w("a is a required number.");
|
|
340
|
+
if (typeof e != "number") throw new w("b is a required number.");
|
|
341
|
+
if (typeof r != "number") throw new w("c is a required number.");
|
|
342
|
+
if (typeof n != "number") throw new w("d is a required number.");
|
|
343
|
+
if (typeof i != "number") throw new w("e is a required number.");
|
|
344
|
+
if (Math.abs(t) < R.EPSILON15) return F.computeRealRoots(e, r, n, i);
|
|
345
|
+
let c = e / t,
|
|
346
|
+
s = r / t,
|
|
347
|
+
u = n / t,
|
|
348
|
+
a = i / t,
|
|
349
|
+
f = c < 0 ? 1 : 0;
|
|
350
|
+
switch (
|
|
351
|
+
((f += s < 0 ? f + 1 : f),
|
|
352
|
+
(f += u < 0 ? f + 1 : f),
|
|
353
|
+
(f += a < 0 ? f + 1 : f),
|
|
354
|
+
f)
|
|
355
|
+
) {
|
|
356
|
+
case 0:
|
|
357
|
+
return z(c, s, u, a);
|
|
358
|
+
case 1:
|
|
359
|
+
return Y(c, s, u, a);
|
|
360
|
+
case 2:
|
|
361
|
+
return Y(c, s, u, a);
|
|
362
|
+
case 3:
|
|
363
|
+
return z(c, s, u, a);
|
|
364
|
+
case 4:
|
|
365
|
+
return z(c, s, u, a);
|
|
366
|
+
case 5:
|
|
367
|
+
return Y(c, s, u, a);
|
|
368
|
+
case 6:
|
|
369
|
+
return z(c, s, u, a);
|
|
370
|
+
case 7:
|
|
371
|
+
return z(c, s, u, a);
|
|
372
|
+
case 8:
|
|
373
|
+
return Y(c, s, u, a);
|
|
374
|
+
case 9:
|
|
375
|
+
return z(c, s, u, a);
|
|
376
|
+
case 10:
|
|
377
|
+
return z(c, s, u, a);
|
|
378
|
+
case 11:
|
|
379
|
+
return Y(c, s, u, a);
|
|
380
|
+
case 12:
|
|
381
|
+
return z(c, s, u, a);
|
|
382
|
+
case 13:
|
|
383
|
+
return z(c, s, u, a);
|
|
384
|
+
case 14:
|
|
385
|
+
return z(c, s, u, a);
|
|
386
|
+
case 15:
|
|
387
|
+
return z(c, s, u, a);
|
|
388
|
+
default:
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
var dt = it;
|
|
393
|
+
function J(t, e) {
|
|
394
|
+
((e = o.clone(H(e, o.ZERO))),
|
|
395
|
+
o.equals(e, o.ZERO) || o.normalize(e, e),
|
|
396
|
+
(this.origin = o.clone(H(t, o.ZERO))),
|
|
397
|
+
(this.direction = e));
|
|
398
|
+
}
|
|
399
|
+
J.clone = function (t, e) {
|
|
400
|
+
if (g(t))
|
|
401
|
+
return g(e)
|
|
402
|
+
? ((e.origin = o.clone(t.origin)),
|
|
403
|
+
(e.direction = o.clone(t.direction)),
|
|
404
|
+
e)
|
|
405
|
+
: new J(t.origin, t.direction);
|
|
406
|
+
};
|
|
407
|
+
J.getPoint = function (t, e, r) {
|
|
408
|
+
return (
|
|
409
|
+
et.typeOf.object("ray", t),
|
|
410
|
+
et.typeOf.number("t", e),
|
|
411
|
+
g(r) || (r = new o()),
|
|
412
|
+
(r = o.multiplyByScalar(t.direction, e, r)),
|
|
413
|
+
o.add(t.origin, r, r)
|
|
414
|
+
);
|
|
415
|
+
};
|
|
416
|
+
var st = J;
|
|
417
|
+
var O = {};
|
|
418
|
+
O.rayPlane = function (t, e, r) {
|
|
419
|
+
if (!g(t)) throw new w("ray is required.");
|
|
420
|
+
if (!g(e)) throw new w("plane is required.");
|
|
421
|
+
g(r) || (r = new o());
|
|
422
|
+
let n = t.origin,
|
|
423
|
+
i = t.direction,
|
|
424
|
+
c = e.normal,
|
|
425
|
+
s = o.dot(c, i);
|
|
426
|
+
if (Math.abs(s) < R.EPSILON15) return;
|
|
427
|
+
let u = (-e.distance - o.dot(c, n)) / s;
|
|
428
|
+
if (!(u < 0)) return ((r = o.multiplyByScalar(i, u, r)), o.add(n, r, r));
|
|
429
|
+
};
|
|
430
|
+
var Ot = new o(),
|
|
431
|
+
Pt = new o(),
|
|
432
|
+
Mt = new o(),
|
|
433
|
+
lt = new o(),
|
|
434
|
+
ht = new o();
|
|
435
|
+
O.rayTriangleParametric = function (t, e, r, n, i) {
|
|
436
|
+
if (!g(t)) throw new w("ray is required.");
|
|
437
|
+
if (!g(e)) throw new w("p0 is required.");
|
|
438
|
+
if (!g(r)) throw new w("p1 is required.");
|
|
439
|
+
if (!g(n)) throw new w("p2 is required.");
|
|
440
|
+
i = H(i, !1);
|
|
441
|
+
let c = t.origin,
|
|
442
|
+
s = t.direction,
|
|
443
|
+
u = o.subtract(r, e, Ot),
|
|
444
|
+
a = o.subtract(n, e, Pt),
|
|
445
|
+
f = o.cross(s, a, Mt),
|
|
446
|
+
l = o.dot(u, f),
|
|
447
|
+
d,
|
|
448
|
+
p,
|
|
449
|
+
q,
|
|
450
|
+
m,
|
|
451
|
+
h;
|
|
452
|
+
if (i) {
|
|
453
|
+
if (
|
|
454
|
+
l < R.EPSILON6 ||
|
|
455
|
+
((d = o.subtract(c, e, lt)), (q = o.dot(d, f)), q < 0 || q > l) ||
|
|
456
|
+
((p = o.cross(d, u, ht)), (m = o.dot(s, p)), m < 0 || q + m > l)
|
|
457
|
+
)
|
|
458
|
+
return;
|
|
459
|
+
h = o.dot(a, p) / l;
|
|
460
|
+
} else {
|
|
461
|
+
if (Math.abs(l) < R.EPSILON6) return;
|
|
462
|
+
let E = 1 / l;
|
|
463
|
+
if (
|
|
464
|
+
((d = o.subtract(c, e, lt)),
|
|
465
|
+
(q = o.dot(d, f) * E),
|
|
466
|
+
q < 0 ||
|
|
467
|
+
q > 1 ||
|
|
468
|
+
((p = o.cross(d, u, ht)), (m = o.dot(s, p) * E), m < 0 || q + m > 1))
|
|
469
|
+
)
|
|
470
|
+
return;
|
|
471
|
+
h = o.dot(a, p) * E;
|
|
472
|
+
}
|
|
473
|
+
return h;
|
|
474
|
+
};
|
|
475
|
+
O.rayTriangle = function (t, e, r, n, i, c) {
|
|
476
|
+
let s = O.rayTriangleParametric(t, e, r, n, i);
|
|
477
|
+
if (!(!g(s) || s < 0))
|
|
478
|
+
return (
|
|
479
|
+
g(c) || (c = new o()),
|
|
480
|
+
o.multiplyByScalar(t.direction, s, c),
|
|
481
|
+
o.add(t.origin, c, c)
|
|
482
|
+
);
|
|
483
|
+
};
|
|
484
|
+
var Et = new st();
|
|
485
|
+
O.lineSegmentTriangle = function (t, e, r, n, i, c, s) {
|
|
486
|
+
if (!g(t)) throw new w("v0 is required.");
|
|
487
|
+
if (!g(e)) throw new w("v1 is required.");
|
|
488
|
+
if (!g(r)) throw new w("p0 is required.");
|
|
489
|
+
if (!g(n)) throw new w("p1 is required.");
|
|
490
|
+
if (!g(i)) throw new w("p2 is required.");
|
|
491
|
+
let u = Et;
|
|
492
|
+
(o.clone(t, u.origin),
|
|
493
|
+
o.subtract(e, t, u.direction),
|
|
494
|
+
o.normalize(u.direction, u.direction));
|
|
495
|
+
let a = O.rayTriangleParametric(u, r, n, i, c);
|
|
496
|
+
if (!(!g(a) || a < 0 || a > o.distance(t, e)))
|
|
497
|
+
return (
|
|
498
|
+
g(s) || (s = new o()),
|
|
499
|
+
o.multiplyByScalar(u.direction, a, s),
|
|
500
|
+
o.add(u.origin, s, s)
|
|
501
|
+
);
|
|
502
|
+
};
|
|
503
|
+
function Ct(t, e, r, n) {
|
|
504
|
+
let i = e * e - 4 * t * r;
|
|
505
|
+
if (i < 0) return;
|
|
506
|
+
if (i > 0) {
|
|
507
|
+
let s = 1 / (2 * t),
|
|
508
|
+
u = Math.sqrt(i),
|
|
509
|
+
a = (-e + u) * s,
|
|
510
|
+
f = (-e - u) * s;
|
|
511
|
+
return (
|
|
512
|
+
a < f ? ((n.root0 = a), (n.root1 = f)) : ((n.root0 = f), (n.root1 = a)),
|
|
513
|
+
n
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
let c = -e / (2 * t);
|
|
517
|
+
if (c !== 0) return ((n.root0 = n.root1 = c), n);
|
|
518
|
+
}
|
|
519
|
+
var Nt = { root0: 0, root1: 0 };
|
|
520
|
+
function Rt(t, e, r) {
|
|
521
|
+
g(r) || (r = new Z());
|
|
522
|
+
let n = t.origin,
|
|
523
|
+
i = t.direction,
|
|
524
|
+
c = e.center,
|
|
525
|
+
s = e.radius * e.radius,
|
|
526
|
+
u = o.subtract(n, c, Mt),
|
|
527
|
+
a = o.dot(i, i),
|
|
528
|
+
f = 2 * o.dot(i, u),
|
|
529
|
+
l = o.magnitudeSquared(u) - s,
|
|
530
|
+
d = Ct(a, f, l, Nt);
|
|
531
|
+
if (g(d)) return ((r.start = d.root0), (r.stop = d.root1), r);
|
|
532
|
+
}
|
|
533
|
+
O.raySphere = function (t, e, r) {
|
|
534
|
+
if (!g(t)) throw new w("ray is required.");
|
|
535
|
+
if (!g(e)) throw new w("sphere is required.");
|
|
536
|
+
if (((r = Rt(t, e, r)), !(!g(r) || r.stop < 0)))
|
|
537
|
+
return ((r.start = Math.max(r.start, 0)), r);
|
|
538
|
+
};
|
|
539
|
+
var Lt = new st();
|
|
540
|
+
O.lineSegmentSphere = function (t, e, r, n) {
|
|
541
|
+
if (!g(t)) throw new w("p0 is required.");
|
|
542
|
+
if (!g(e)) throw new w("p1 is required.");
|
|
543
|
+
if (!g(r)) throw new w("sphere is required.");
|
|
544
|
+
let i = Lt;
|
|
545
|
+
o.clone(t, i.origin);
|
|
546
|
+
let c = o.subtract(e, t, i.direction),
|
|
547
|
+
s = o.magnitude(c);
|
|
548
|
+
if (
|
|
549
|
+
(o.normalize(c, c),
|
|
550
|
+
(n = Rt(i, r, n)),
|
|
551
|
+
!(!g(n) || n.stop < 0 || n.start > s))
|
|
552
|
+
)
|
|
553
|
+
return (
|
|
554
|
+
(n.start = Math.max(n.start, 0)),
|
|
555
|
+
(n.stop = Math.min(n.stop, s)),
|
|
556
|
+
n
|
|
557
|
+
);
|
|
558
|
+
};
|
|
559
|
+
var It = new o(),
|
|
560
|
+
Dt = new o();
|
|
561
|
+
O.rayEllipsoid = function (t, e) {
|
|
562
|
+
if (!g(t)) throw new w("ray is required.");
|
|
563
|
+
if (!g(e)) throw new w("ellipsoid is required.");
|
|
564
|
+
let r = e.oneOverRadii,
|
|
565
|
+
n = o.multiplyComponents(r, t.origin, It),
|
|
566
|
+
i = o.multiplyComponents(r, t.direction, Dt),
|
|
567
|
+
c = o.magnitudeSquared(n),
|
|
568
|
+
s = o.dot(n, i),
|
|
569
|
+
u,
|
|
570
|
+
a,
|
|
571
|
+
f,
|
|
572
|
+
l,
|
|
573
|
+
d;
|
|
574
|
+
if (c > 1) {
|
|
575
|
+
if (s >= 0) return;
|
|
576
|
+
let p = s * s;
|
|
577
|
+
if (((u = c - 1), (a = o.magnitudeSquared(i)), (f = a * u), p < f)) return;
|
|
578
|
+
if (p > f) {
|
|
579
|
+
((l = s * s - f), (d = -s + Math.sqrt(l)));
|
|
580
|
+
let m = d / a,
|
|
581
|
+
h = u / d;
|
|
582
|
+
return m < h ? new Z(m, h) : { start: h, stop: m };
|
|
583
|
+
}
|
|
584
|
+
let q = Math.sqrt(u / a);
|
|
585
|
+
return new Z(q, q);
|
|
586
|
+
} else if (c < 1)
|
|
587
|
+
return (
|
|
588
|
+
(u = c - 1),
|
|
589
|
+
(a = o.magnitudeSquared(i)),
|
|
590
|
+
(f = a * u),
|
|
591
|
+
(l = s * s - f),
|
|
592
|
+
(d = -s + Math.sqrt(l)),
|
|
593
|
+
new Z(0, d / a)
|
|
594
|
+
);
|
|
595
|
+
if (s < 0) return ((a = o.magnitudeSquared(i)), new Z(0, -s / a));
|
|
596
|
+
};
|
|
597
|
+
function Q(t, e, r) {
|
|
598
|
+
let n = t + e;
|
|
599
|
+
return R.sign(t) !== R.sign(e) &&
|
|
600
|
+
Math.abs(n / Math.max(Math.abs(t), Math.abs(e))) < r
|
|
601
|
+
? 0
|
|
602
|
+
: n;
|
|
603
|
+
}
|
|
604
|
+
O.quadraticVectorExpression = function (t, e, r, n, i) {
|
|
605
|
+
let c = n * n,
|
|
606
|
+
s = i * i,
|
|
607
|
+
u = (t[b.COLUMN1ROW1] - t[b.COLUMN2ROW2]) * s,
|
|
608
|
+
a = i * (n * Q(t[b.COLUMN1ROW0], t[b.COLUMN0ROW1], R.EPSILON15) + e.y),
|
|
609
|
+
f = t[b.COLUMN0ROW0] * c + t[b.COLUMN2ROW2] * s + n * e.x + r,
|
|
610
|
+
l = s * Q(t[b.COLUMN2ROW1], t[b.COLUMN1ROW2], R.EPSILON15),
|
|
611
|
+
d = i * (n * Q(t[b.COLUMN2ROW0], t[b.COLUMN0ROW2]) + e.z),
|
|
612
|
+
p,
|
|
613
|
+
q = [];
|
|
614
|
+
if (d === 0 && l === 0) {
|
|
615
|
+
if (((p = T.computeRealRoots(u, a, f)), p.length === 0)) return q;
|
|
616
|
+
let P = p[0],
|
|
617
|
+
y = Math.sqrt(Math.max(1 - P * P, 0));
|
|
618
|
+
if (
|
|
619
|
+
(q.push(new o(n, i * P, i * -y)),
|
|
620
|
+
q.push(new o(n, i * P, i * y)),
|
|
621
|
+
p.length === 2)
|
|
622
|
+
) {
|
|
623
|
+
let S = p[1],
|
|
624
|
+
M = Math.sqrt(Math.max(1 - S * S, 0));
|
|
625
|
+
(q.push(new o(n, i * S, i * -M)), q.push(new o(n, i * S, i * M)));
|
|
626
|
+
}
|
|
627
|
+
return q;
|
|
628
|
+
}
|
|
629
|
+
let m = d * d,
|
|
630
|
+
h = l * l,
|
|
631
|
+
E = u * u,
|
|
632
|
+
D = d * l,
|
|
633
|
+
W = E + h,
|
|
634
|
+
V = 2 * (a * u + D),
|
|
635
|
+
L = 2 * f * u + a * a - h + m,
|
|
636
|
+
B = 2 * (f * a - D),
|
|
637
|
+
I = f * f - m;
|
|
638
|
+
if (W === 0 && V === 0 && L === 0 && B === 0) return q;
|
|
639
|
+
p = dt.computeRealRoots(W, V, L, B, I);
|
|
640
|
+
let C = p.length;
|
|
641
|
+
if (C === 0) return q;
|
|
642
|
+
for (let P = 0; P < C; ++P) {
|
|
643
|
+
let y = p[P],
|
|
644
|
+
S = y * y,
|
|
645
|
+
M = Math.max(1 - S, 0),
|
|
646
|
+
N = Math.sqrt(M),
|
|
647
|
+
x;
|
|
648
|
+
R.sign(u) === R.sign(f)
|
|
649
|
+
? (x = Q(u * S + f, a * y, R.EPSILON12))
|
|
650
|
+
: R.sign(f) === R.sign(a * y)
|
|
651
|
+
? (x = Q(u * S, a * y + f, R.EPSILON12))
|
|
652
|
+
: (x = Q(u * S + a * y, f, R.EPSILON12));
|
|
653
|
+
let _ = Q(l * y, d, R.EPSILON15),
|
|
654
|
+
A = x * _;
|
|
655
|
+
A < 0
|
|
656
|
+
? q.push(new o(n, i * y, i * N))
|
|
657
|
+
: A > 0
|
|
658
|
+
? q.push(new o(n, i * y, i * -N))
|
|
659
|
+
: N !== 0
|
|
660
|
+
? (q.push(new o(n, i * y, i * -N)),
|
|
661
|
+
q.push(new o(n, i * y, i * N)),
|
|
662
|
+
++P)
|
|
663
|
+
: q.push(new o(n, i * y, i * N));
|
|
664
|
+
}
|
|
665
|
+
return q;
|
|
666
|
+
};
|
|
667
|
+
var ct = new o(),
|
|
668
|
+
wt = new o(),
|
|
669
|
+
qt = new o(),
|
|
670
|
+
K = new o(),
|
|
671
|
+
Bt = new o(),
|
|
672
|
+
xt = new b(),
|
|
673
|
+
Tt = new b(),
|
|
674
|
+
zt = new b(),
|
|
675
|
+
Wt = new b(),
|
|
676
|
+
Vt = new b(),
|
|
677
|
+
gt = new b(),
|
|
678
|
+
pt = new b(),
|
|
679
|
+
St = new o(),
|
|
680
|
+
vt = new o(),
|
|
681
|
+
Ut = new ft();
|
|
682
|
+
O.grazingAltitudeLocation = function (t, e) {
|
|
683
|
+
if (!g(t)) throw new w("ray is required.");
|
|
684
|
+
if (!g(e)) throw new w("ellipsoid is required.");
|
|
685
|
+
let r = t.origin,
|
|
686
|
+
n = t.direction;
|
|
687
|
+
if (!o.equals(r, o.ZERO)) {
|
|
688
|
+
let I = e.geodeticSurfaceNormal(r, ct);
|
|
689
|
+
if (o.dot(n, I) >= 0) return r;
|
|
690
|
+
}
|
|
691
|
+
let i = g(this.rayEllipsoid(t, e)),
|
|
692
|
+
c = e.transformPositionToScaledSpace(n, ct),
|
|
693
|
+
s = o.normalize(c, c),
|
|
694
|
+
u = o.mostOrthogonalAxis(c, K),
|
|
695
|
+
a = o.normalize(o.cross(u, s, wt), wt),
|
|
696
|
+
f = o.normalize(o.cross(s, a, qt), qt),
|
|
697
|
+
l = xt;
|
|
698
|
+
((l[0] = s.x),
|
|
699
|
+
(l[1] = s.y),
|
|
700
|
+
(l[2] = s.z),
|
|
701
|
+
(l[3] = a.x),
|
|
702
|
+
(l[4] = a.y),
|
|
703
|
+
(l[5] = a.z),
|
|
704
|
+
(l[6] = f.x),
|
|
705
|
+
(l[7] = f.y),
|
|
706
|
+
(l[8] = f.z));
|
|
707
|
+
let d = b.transpose(l, Tt),
|
|
708
|
+
p = b.fromScale(e.radii, zt),
|
|
709
|
+
q = b.fromScale(e.oneOverRadii, Wt),
|
|
710
|
+
m = Vt;
|
|
711
|
+
((m[0] = 0),
|
|
712
|
+
(m[1] = -n.z),
|
|
713
|
+
(m[2] = n.y),
|
|
714
|
+
(m[3] = n.z),
|
|
715
|
+
(m[4] = 0),
|
|
716
|
+
(m[5] = -n.x),
|
|
717
|
+
(m[6] = -n.y),
|
|
718
|
+
(m[7] = n.x),
|
|
719
|
+
(m[8] = 0));
|
|
720
|
+
let h = b.multiply(b.multiply(d, q, gt), m, gt),
|
|
721
|
+
E = b.multiply(b.multiply(h, p, pt), l, pt),
|
|
722
|
+
D = b.multiplyByVector(h, r, Bt),
|
|
723
|
+
W = O.quadraticVectorExpression(E, o.negate(D, ct), 0, 0, 1),
|
|
724
|
+
V,
|
|
725
|
+
L,
|
|
726
|
+
B = W.length;
|
|
727
|
+
if (B > 0) {
|
|
728
|
+
let I = o.clone(o.ZERO, vt),
|
|
729
|
+
C = Number.NEGATIVE_INFINITY;
|
|
730
|
+
for (let y = 0; y < B; ++y) {
|
|
731
|
+
V = b.multiplyByVector(p, b.multiplyByVector(l, W[y], St), St);
|
|
732
|
+
let S = o.normalize(o.subtract(V, r, K), K),
|
|
733
|
+
M = o.dot(S, n);
|
|
734
|
+
M > C && ((C = M), (I = o.clone(V, I)));
|
|
735
|
+
}
|
|
736
|
+
let P = e.cartesianToCartographic(I, Ut);
|
|
737
|
+
return (
|
|
738
|
+
(C = R.clamp(C, 0, 1)),
|
|
739
|
+
(L = o.magnitude(o.subtract(I, r, K)) * Math.sqrt(1 - C * C)),
|
|
740
|
+
(L = i ? -L : L),
|
|
741
|
+
(P.height = L),
|
|
742
|
+
e.cartographicToCartesian(P, new o())
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
var Qt = new o();
|
|
747
|
+
O.lineSegmentPlane = function (t, e, r, n) {
|
|
748
|
+
if (!g(t)) throw new w("endPoint0 is required.");
|
|
749
|
+
if (!g(e)) throw new w("endPoint1 is required.");
|
|
750
|
+
if (!g(r)) throw new w("plane is required.");
|
|
751
|
+
g(n) || (n = new o());
|
|
752
|
+
let i = o.subtract(e, t, Qt),
|
|
753
|
+
c = r.normal,
|
|
754
|
+
s = o.dot(c, i);
|
|
755
|
+
if (Math.abs(s) < R.EPSILON6) return;
|
|
756
|
+
let u = o.dot(c, t),
|
|
757
|
+
a = -(r.distance + u) / s;
|
|
758
|
+
if (!(a < 0 || a > 1))
|
|
759
|
+
return (o.multiplyByScalar(i, a, n), o.add(t, n, n), n);
|
|
760
|
+
};
|
|
761
|
+
O.trianglePlaneIntersection = function (t, e, r, n) {
|
|
762
|
+
if (!g(t) || !g(e) || !g(r) || !g(n))
|
|
763
|
+
throw new w("p0, p1, p2, and plane are required.");
|
|
764
|
+
let i = n.normal,
|
|
765
|
+
c = n.distance,
|
|
766
|
+
s = o.dot(i, t) + c < 0,
|
|
767
|
+
u = o.dot(i, e) + c < 0,
|
|
768
|
+
a = o.dot(i, r) + c < 0,
|
|
769
|
+
f = 0;
|
|
770
|
+
((f += s ? 1 : 0), (f += u ? 1 : 0), (f += a ? 1 : 0));
|
|
771
|
+
let l, d;
|
|
772
|
+
if (((f === 1 || f === 2) && ((l = new o()), (d = new o())), f === 1)) {
|
|
773
|
+
if (s)
|
|
774
|
+
return (
|
|
775
|
+
O.lineSegmentPlane(t, e, n, l),
|
|
776
|
+
O.lineSegmentPlane(t, r, n, d),
|
|
777
|
+
{ positions: [t, e, r, l, d], indices: [0, 3, 4, 1, 2, 4, 1, 4, 3] }
|
|
778
|
+
);
|
|
779
|
+
if (u)
|
|
780
|
+
return (
|
|
781
|
+
O.lineSegmentPlane(e, r, n, l),
|
|
782
|
+
O.lineSegmentPlane(e, t, n, d),
|
|
783
|
+
{ positions: [t, e, r, l, d], indices: [1, 3, 4, 2, 0, 4, 2, 4, 3] }
|
|
784
|
+
);
|
|
785
|
+
if (a)
|
|
786
|
+
return (
|
|
787
|
+
O.lineSegmentPlane(r, t, n, l),
|
|
788
|
+
O.lineSegmentPlane(r, e, n, d),
|
|
789
|
+
{ positions: [t, e, r, l, d], indices: [2, 3, 4, 0, 1, 4, 0, 4, 3] }
|
|
790
|
+
);
|
|
791
|
+
} else if (f === 2)
|
|
792
|
+
if (s)
|
|
793
|
+
if (u) {
|
|
794
|
+
if (!a)
|
|
795
|
+
return (
|
|
796
|
+
O.lineSegmentPlane(t, r, n, l),
|
|
797
|
+
O.lineSegmentPlane(e, r, n, d),
|
|
798
|
+
{ positions: [t, e, r, l, d], indices: [0, 1, 4, 0, 4, 3, 2, 3, 4] }
|
|
799
|
+
);
|
|
800
|
+
} else
|
|
801
|
+
return (
|
|
802
|
+
O.lineSegmentPlane(r, e, n, l),
|
|
803
|
+
O.lineSegmentPlane(t, e, n, d),
|
|
804
|
+
{ positions: [t, e, r, l, d], indices: [2, 0, 4, 2, 4, 3, 1, 3, 4] }
|
|
805
|
+
);
|
|
806
|
+
else
|
|
807
|
+
return (
|
|
808
|
+
O.lineSegmentPlane(e, t, n, l),
|
|
809
|
+
O.lineSegmentPlane(r, t, n, d),
|
|
810
|
+
{ positions: [t, e, r, l, d], indices: [1, 2, 4, 1, 4, 3, 0, 3, 4] }
|
|
811
|
+
);
|
|
812
|
+
};
|
|
813
|
+
var we = O;
|
|
814
|
+
export { st as a, we as b };
|