@hztxi/cesium-engine 25.0.6 → 25.0.7
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/Build/Workers/chunk-2GJAWJJT.js +1344 -0
- package/Build/Workers/chunk-2J2VS5RI.js +288 -0
- package/Build/Workers/chunk-375SHKGW.js +44 -0
- package/Build/Workers/chunk-5FYUSABU.js +945 -0
- package/Build/Workers/chunk-5WU37CUJ.js +630 -0
- package/Build/Workers/chunk-6EBDN5WS.js +97 -0
- package/Build/Workers/chunk-75HIWCEV.js +301 -0
- package/Build/Workers/chunk-7AMVPXZY.js +1992 -0
- package/Build/Workers/chunk-7BMDD6SM.js +124 -0
- package/Build/Workers/chunk-7OME2OKM.js +171 -0
- package/Build/Workers/chunk-A2BROW3D.js +352 -0
- package/Build/Workers/chunk-B4XOVZGA.js +476 -0
- package/Build/Workers/chunk-CDLPLYLV.js +1287 -0
- package/Build/Workers/chunk-CEKCKPFN.js +368 -0
- package/Build/Workers/chunk-CHMDKP5L.js +2342 -0
- package/Build/Workers/chunk-CWGB3D4Z.js +257 -0
- package/Build/Workers/chunk-DQEUGBGA.js +2719 -0
- package/Build/Workers/chunk-DUBE5G2H.js +497 -0
- package/Build/Workers/chunk-E4PBNWWK.js +58 -0
- package/Build/Workers/chunk-E5MWOMVC.js +57 -0
- package/Build/Workers/chunk-EE3XBOQI.js +1483 -0
- package/Build/Workers/chunk-EHA2ZDPZ.js +415 -0
- package/Build/Workers/chunk-EKEKPAJF.js +454 -0
- package/Build/Workers/chunk-EOHKUXPX.js +198 -0
- package/Build/Workers/chunk-ERENMHG2.js +754 -0
- package/Build/Workers/chunk-ESQGFRLZ.js +163 -0
- package/Build/Workers/chunk-FV4OWDV4.js +9230 -0
- package/Build/Workers/chunk-FYRNNQSL.js +280 -0
- package/Build/Workers/chunk-JMF4ATAS.js +3794 -0
- package/Build/Workers/chunk-KEJKMITY.js +82 -0
- package/Build/Workers/chunk-KW2QZDUS.js +147 -0
- package/Build/Workers/chunk-L6B5XPBL.js +73 -0
- package/Build/Workers/chunk-LGJXN2VP.js +352 -0
- package/Build/Workers/chunk-LY2UG3HV.js +38 -0
- package/Build/Workers/chunk-NCPJBP24.js +140 -0
- package/Build/Workers/chunk-NFY5V6MR.js +102 -0
- package/Build/Workers/chunk-OYPSUED3.js +1067 -0
- package/Build/Workers/chunk-QIOOTLWN.js +56 -0
- package/Build/Workers/chunk-QUPRALOD.js +101 -0
- package/Build/Workers/chunk-RBEVHHXK.js +3201 -0
- package/Build/Workers/chunk-RHO5HV52.js +305 -0
- package/Build/Workers/chunk-SVCZUP5R.js +837 -0
- package/Build/Workers/chunk-TBHW5UME.js +973 -0
- package/Build/Workers/chunk-TPOX6IOR.js +1054 -0
- package/Build/Workers/chunk-ULNBTI6R.js +138 -0
- package/Build/Workers/chunk-UMUS2AQQ.js +398 -0
- package/Build/Workers/chunk-UZ7GTP2L.js +162 -0
- package/Build/Workers/chunk-W3C7OHXF.js +387 -0
- package/Build/Workers/chunk-WB5GWYDP.js +455 -0
- package/Build/Workers/chunk-WN6MAL25.js +682 -0
- package/Build/Workers/chunk-WTR7KMQA.js +693 -0
- package/Build/Workers/chunk-WTTFMU3P.js +241 -0
- package/Build/Workers/chunk-WULONJZC.js +1800 -0
- package/Build/Workers/chunk-WZPMAVTV.js +511 -0
- package/Build/Workers/chunk-Y7KVUJEB.js +219 -0
- package/Build/Workers/chunk-Z6JV4DZG.js +1046 -0
- package/Build/Workers/chunk-ZTK5EBUI.js +76 -0
- package/Build/Workers/chunk-ZZPDORJK.js +56 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +95 -31
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -23
- package/Build/Workers/createVerticesFromHeightmap.js +23 -23
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +21 -21
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +23 -23
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Source/Core/GroundPolylineGeometry.js +99 -4
- package/Source/Core/PolylinePipeline.js +9 -2
- package/Source/DataSources/PolylineGeometryUpdater.js +125 -7
- package/Source/Scene/Camera.js +56 -3
- package/Source/Scene/CameraFlightPath.js +14 -0
- package/Source/Scene/ColumbusWorlds.js +190 -0
- package/Source/Scene/FrameState.js +10 -0
- package/Source/Scene/Globe.js +89 -22
- package/Source/Scene/GlobeDepth.js +216 -5
- package/Source/Scene/GlobeSurfaceTileProvider.js +897 -678
- package/Source/Scene/GroundPolylinePrimitive.js +2 -1
- package/Source/Scene/Polyline.js +32 -5
- package/Source/Scene/PolylineCollection.js +37 -0
- package/Source/Scene/Primitive.js +12 -13
- package/Source/Scene/PrimitivePipeline.js +158 -28
- package/Source/Scene/Scene.js +428 -5
- package/Source/Scene/SceneTransforms.js +17 -0
- package/Source/Scene/ScreenSpaceCameraController.js +12 -3
- package/Source/Shaders/PolylineShadowVolumeFS.glsl +14 -0
- package/Source/Shaders/PolylineShadowVolumeFS.js +14 -0
- package/Source/Shaders/RestoreDepth.glsl +8 -0
- package/Source/Shaders/RestoreDepth.js +10 -0
- package/index.d.ts +535 -1393
- package/index.js +138 -136
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.7
|
|
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
|
+
var __create = Object.create;
|
|
27
|
+
var __defProp = Object.defineProperty;
|
|
28
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
29
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
30
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
31
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
32
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
33
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
34
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
35
|
+
}) : x)(function(x) {
|
|
36
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
37
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
38
|
+
});
|
|
39
|
+
var __glob = (map) => (path) => {
|
|
40
|
+
var fn = map[path];
|
|
41
|
+
if (fn) return fn();
|
|
42
|
+
throw new Error("Module not found in bundle: " + path);
|
|
43
|
+
};
|
|
44
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
45
|
+
try {
|
|
46
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
47
|
+
} catch (e) {
|
|
48
|
+
throw mod = 0, e;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var __copyProps = (to, from, except, desc) => {
|
|
52
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
53
|
+
for (let key of __getOwnPropNames(from))
|
|
54
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
55
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
56
|
+
}
|
|
57
|
+
return to;
|
|
58
|
+
};
|
|
59
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
60
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
61
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
62
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
63
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
64
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
65
|
+
mod
|
|
66
|
+
));
|
|
67
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
68
|
+
|
|
69
|
+
// packages/engine/Source/Core/defined.js
|
|
70
|
+
function defined(value) {
|
|
71
|
+
return value !== void 0 && value !== null;
|
|
72
|
+
}
|
|
73
|
+
var defined_default = defined;
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
__require,
|
|
77
|
+
__glob,
|
|
78
|
+
__commonJS,
|
|
79
|
+
__toESM,
|
|
80
|
+
__publicField,
|
|
81
|
+
defined_default
|
|
82
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.7
|
|
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 {
|
|
27
|
+
Cartographic_default,
|
|
28
|
+
Ellipsoid_default
|
|
29
|
+
} from "./chunk-7AMVPXZY.js";
|
|
30
|
+
import {
|
|
31
|
+
Cartesian3_default
|
|
32
|
+
} from "./chunk-CHMDKP5L.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-DUBE5G2H.js";
|
|
36
|
+
import {
|
|
37
|
+
DeveloperError_default
|
|
38
|
+
} from "./chunk-ESQGFRLZ.js";
|
|
39
|
+
import {
|
|
40
|
+
defined_default
|
|
41
|
+
} from "./chunk-KEJKMITY.js";
|
|
42
|
+
|
|
43
|
+
// packages/engine/Source/Core/WebMercatorProjection.js
|
|
44
|
+
var WebMercatorProjection = class _WebMercatorProjection {
|
|
45
|
+
/**
|
|
46
|
+
* @param {Ellipsoid} [ellipsoid=Ellipsoid.WGS84] The ellipsoid.
|
|
47
|
+
*/
|
|
48
|
+
constructor(ellipsoid) {
|
|
49
|
+
this._ellipsoid = ellipsoid ?? Ellipsoid_default.WGS84;
|
|
50
|
+
this._semimajorAxis = this._ellipsoid.maximumRadius;
|
|
51
|
+
this._oneOverSemimajorAxis = 1 / this._semimajorAxis;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Gets the {@link Ellipsoid}.
|
|
55
|
+
*
|
|
56
|
+
* @type {Ellipsoid}
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
get ellipsoid() {
|
|
60
|
+
return this._ellipsoid;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Converts a Mercator angle, in the range -PI to PI, to a geodetic latitude
|
|
64
|
+
* in the range -PI/2 to PI/2.
|
|
65
|
+
*
|
|
66
|
+
* @param {number} mercatorAngle The angle to convert.
|
|
67
|
+
* @returns {number} The geodetic latitude in radians.
|
|
68
|
+
*/
|
|
69
|
+
static mercatorAngleToGeodeticLatitude(mercatorAngle) {
|
|
70
|
+
return Math_default.PI_OVER_TWO - 2 * Math.atan(Math.exp(-mercatorAngle));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Converts a geodetic latitude in radians, in the range -PI/2 to PI/2, to a Mercator
|
|
74
|
+
* angle in the range -PI to PI.
|
|
75
|
+
*
|
|
76
|
+
* @param {number} latitude The geodetic latitude in radians.
|
|
77
|
+
* @returns {number} The Mercator angle.
|
|
78
|
+
*/
|
|
79
|
+
static geodeticLatitudeToMercatorAngle(latitude) {
|
|
80
|
+
if (latitude > _WebMercatorProjection.MaximumLatitude) {
|
|
81
|
+
latitude = _WebMercatorProjection.MaximumLatitude;
|
|
82
|
+
} else if (latitude < -_WebMercatorProjection.MaximumLatitude) {
|
|
83
|
+
latitude = -_WebMercatorProjection.MaximumLatitude;
|
|
84
|
+
}
|
|
85
|
+
const sinLatitude = Math.sin(latitude);
|
|
86
|
+
return 0.5 * Math.log((1 + sinLatitude) / (1 - sinLatitude));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Converts geodetic ellipsoid coordinates, in radians, to the equivalent Web Mercator
|
|
90
|
+
* X, Y, Z coordinates expressed in meters and returned in a {@link Cartesian3}. The height
|
|
91
|
+
* is copied unmodified to the Z coordinate.
|
|
92
|
+
*
|
|
93
|
+
* @param {Cartographic} cartographic The cartographic coordinates in radians.
|
|
94
|
+
* @param {Cartesian3} [result] The instance to which to copy the result, or undefined if a
|
|
95
|
+
* new instance should be created.
|
|
96
|
+
* @returns {Cartesian3} The equivalent web mercator X, Y, Z coordinates, in meters.
|
|
97
|
+
*/
|
|
98
|
+
project(cartographic, result) {
|
|
99
|
+
const semimajorAxis = this._semimajorAxis;
|
|
100
|
+
const x = cartographic.longitude * semimajorAxis;
|
|
101
|
+
const y = _WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
102
|
+
cartographic.latitude
|
|
103
|
+
) * semimajorAxis;
|
|
104
|
+
const z = cartographic.height;
|
|
105
|
+
if (!defined_default(result)) {
|
|
106
|
+
return new Cartesian3_default(x, y, z);
|
|
107
|
+
}
|
|
108
|
+
result.x = x;
|
|
109
|
+
result.y = y;
|
|
110
|
+
result.z = z;
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Converts Web Mercator X, Y coordinates, expressed in meters, to a {@link Cartographic}
|
|
115
|
+
* containing geodetic ellipsoid coordinates. The Z coordinate is copied unmodified to the
|
|
116
|
+
* height.
|
|
117
|
+
*
|
|
118
|
+
* @param {Cartesian3} cartesian The web mercator Cartesian position to unrproject with height (z) in meters.
|
|
119
|
+
* @param {Cartographic} [result] The instance to which to copy the result, or undefined if a
|
|
120
|
+
* new instance should be created.
|
|
121
|
+
* @returns {Cartographic} The equivalent cartographic coordinates.
|
|
122
|
+
*/
|
|
123
|
+
unproject(cartesian, result) {
|
|
124
|
+
if (!defined_default(cartesian)) {
|
|
125
|
+
throw new DeveloperError_default("cartesian is required");
|
|
126
|
+
}
|
|
127
|
+
const oneOverEarthSemimajorAxis = this._oneOverSemimajorAxis;
|
|
128
|
+
const longitude = cartesian.x * oneOverEarthSemimajorAxis;
|
|
129
|
+
const latitude = _WebMercatorProjection.mercatorAngleToGeodeticLatitude(
|
|
130
|
+
cartesian.y * oneOverEarthSemimajorAxis
|
|
131
|
+
);
|
|
132
|
+
const height = cartesian.z;
|
|
133
|
+
if (!defined_default(result)) {
|
|
134
|
+
return new Cartographic_default(longitude, latitude, height);
|
|
135
|
+
}
|
|
136
|
+
result.longitude = longitude;
|
|
137
|
+
result.latitude = latitude;
|
|
138
|
+
result.height = height;
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
WebMercatorProjection.MaximumLatitude = WebMercatorProjection.mercatorAngleToGeodeticLatitude(Math.PI);
|
|
143
|
+
var WebMercatorProjection_default = WebMercatorProjection;
|
|
144
|
+
|
|
145
|
+
export {
|
|
146
|
+
WebMercatorProjection_default
|
|
147
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.7
|
|
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 {
|
|
27
|
+
Math_default
|
|
28
|
+
} from "./chunk-DUBE5G2H.js";
|
|
29
|
+
|
|
30
|
+
// packages/engine/Source/Core/CylinderGeometryLibrary.js
|
|
31
|
+
var CylinderGeometryLibrary = {};
|
|
32
|
+
CylinderGeometryLibrary.computePositions = function(length, topRadius, bottomRadius, slices, fill) {
|
|
33
|
+
const topZ = length * 0.5;
|
|
34
|
+
const bottomZ = -topZ;
|
|
35
|
+
const twoSlice = slices + slices;
|
|
36
|
+
const size = fill ? 2 * twoSlice : twoSlice;
|
|
37
|
+
const positions = new Float64Array(size * 3);
|
|
38
|
+
let i;
|
|
39
|
+
let index = 0;
|
|
40
|
+
let tbIndex = 0;
|
|
41
|
+
const bottomOffset = fill ? twoSlice * 3 : 0;
|
|
42
|
+
const topOffset = fill ? (twoSlice + slices) * 3 : slices * 3;
|
|
43
|
+
for (i = 0; i < slices; i++) {
|
|
44
|
+
const angle = i / slices * Math_default.TWO_PI;
|
|
45
|
+
const x = Math.cos(angle);
|
|
46
|
+
const y = Math.sin(angle);
|
|
47
|
+
const bottomX = x * bottomRadius;
|
|
48
|
+
const bottomY = y * bottomRadius;
|
|
49
|
+
const topX = x * topRadius;
|
|
50
|
+
const topY = y * topRadius;
|
|
51
|
+
positions[tbIndex + bottomOffset] = bottomX;
|
|
52
|
+
positions[tbIndex + bottomOffset + 1] = bottomY;
|
|
53
|
+
positions[tbIndex + bottomOffset + 2] = bottomZ;
|
|
54
|
+
positions[tbIndex + topOffset] = topX;
|
|
55
|
+
positions[tbIndex + topOffset + 1] = topY;
|
|
56
|
+
positions[tbIndex + topOffset + 2] = topZ;
|
|
57
|
+
tbIndex += 3;
|
|
58
|
+
if (fill) {
|
|
59
|
+
positions[index++] = bottomX;
|
|
60
|
+
positions[index++] = bottomY;
|
|
61
|
+
positions[index++] = bottomZ;
|
|
62
|
+
positions[index++] = topX;
|
|
63
|
+
positions[index++] = topY;
|
|
64
|
+
positions[index++] = topZ;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return positions;
|
|
68
|
+
};
|
|
69
|
+
var CylinderGeometryLibrary_default = CylinderGeometryLibrary;
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
CylinderGeometryLibrary_default
|
|
73
|
+
};
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.7
|
|
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 {
|
|
27
|
+
Cartographic_default,
|
|
28
|
+
Ellipsoid_default
|
|
29
|
+
} from "./chunk-7AMVPXZY.js";
|
|
30
|
+
import {
|
|
31
|
+
Cartesian3_default
|
|
32
|
+
} from "./chunk-CHMDKP5L.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-DUBE5G2H.js";
|
|
36
|
+
import {
|
|
37
|
+
Check_default
|
|
38
|
+
} from "./chunk-ESQGFRLZ.js";
|
|
39
|
+
import {
|
|
40
|
+
defined_default
|
|
41
|
+
} from "./chunk-KEJKMITY.js";
|
|
42
|
+
|
|
43
|
+
// packages/engine/Source/Core/EllipsoidGeodesic.js
|
|
44
|
+
function setConstants(ellipsoidGeodesic) {
|
|
45
|
+
const uSquared = ellipsoidGeodesic._uSquared;
|
|
46
|
+
const a = ellipsoidGeodesic._ellipsoid.maximumRadius;
|
|
47
|
+
const b = ellipsoidGeodesic._ellipsoid.minimumRadius;
|
|
48
|
+
const f = (a - b) / a;
|
|
49
|
+
const cosineHeading = Math.cos(ellipsoidGeodesic._startHeading);
|
|
50
|
+
const sineHeading = Math.sin(ellipsoidGeodesic._startHeading);
|
|
51
|
+
const tanU = (1 - f) * Math.tan(ellipsoidGeodesic._start.latitude);
|
|
52
|
+
const cosineU = 1 / Math.sqrt(1 + tanU * tanU);
|
|
53
|
+
const sineU = cosineU * tanU;
|
|
54
|
+
const sigma = Math.atan2(tanU, cosineHeading);
|
|
55
|
+
const sineAlpha = cosineU * sineHeading;
|
|
56
|
+
const sineSquaredAlpha = sineAlpha * sineAlpha;
|
|
57
|
+
const cosineSquaredAlpha = 1 - sineSquaredAlpha;
|
|
58
|
+
const cosineAlpha = Math.sqrt(cosineSquaredAlpha);
|
|
59
|
+
const u2Over4 = uSquared / 4;
|
|
60
|
+
const u4Over16 = u2Over4 * u2Over4;
|
|
61
|
+
const u6Over64 = u4Over16 * u2Over4;
|
|
62
|
+
const u8Over256 = u4Over16 * u4Over16;
|
|
63
|
+
const a0 = 1 + u2Over4 - 3 * u4Over16 / 4 + 5 * u6Over64 / 4 - 175 * u8Over256 / 64;
|
|
64
|
+
const a1 = 1 - u2Over4 + 15 * u4Over16 / 8 - 35 * u6Over64 / 8;
|
|
65
|
+
const a2 = 1 - 3 * u2Over4 + 35 * u4Over16 / 4;
|
|
66
|
+
const a3 = 1 - 5 * u2Over4;
|
|
67
|
+
const distanceRatio = a0 * sigma - a1 * Math.sin(2 * sigma) * u2Over4 / 2 - a2 * Math.sin(4 * sigma) * u4Over16 / 16 - a3 * Math.sin(6 * sigma) * u6Over64 / 48 - Math.sin(8 * sigma) * 5 * u8Over256 / 512;
|
|
68
|
+
const constants = ellipsoidGeodesic._constants;
|
|
69
|
+
constants.a = a;
|
|
70
|
+
constants.b = b;
|
|
71
|
+
constants.f = f;
|
|
72
|
+
constants.cosineHeading = cosineHeading;
|
|
73
|
+
constants.sineHeading = sineHeading;
|
|
74
|
+
constants.tanU = tanU;
|
|
75
|
+
constants.cosineU = cosineU;
|
|
76
|
+
constants.sineU = sineU;
|
|
77
|
+
constants.sigma = sigma;
|
|
78
|
+
constants.sineAlpha = sineAlpha;
|
|
79
|
+
constants.sineSquaredAlpha = sineSquaredAlpha;
|
|
80
|
+
constants.cosineSquaredAlpha = cosineSquaredAlpha;
|
|
81
|
+
constants.cosineAlpha = cosineAlpha;
|
|
82
|
+
constants.u2Over4 = u2Over4;
|
|
83
|
+
constants.u4Over16 = u4Over16;
|
|
84
|
+
constants.u6Over64 = u6Over64;
|
|
85
|
+
constants.u8Over256 = u8Over256;
|
|
86
|
+
constants.a0 = a0;
|
|
87
|
+
constants.a1 = a1;
|
|
88
|
+
constants.a2 = a2;
|
|
89
|
+
constants.a3 = a3;
|
|
90
|
+
constants.distanceRatio = distanceRatio;
|
|
91
|
+
}
|
|
92
|
+
function computeC(f, cosineSquaredAlpha) {
|
|
93
|
+
return f * cosineSquaredAlpha * (4 + f * (4 - 3 * cosineSquaredAlpha)) / 16;
|
|
94
|
+
}
|
|
95
|
+
function computeDeltaLambda(f, sineAlpha, cosineSquaredAlpha, sigma, sineSigma, cosineSigma, cosineTwiceSigmaMidpoint) {
|
|
96
|
+
const C = computeC(f, cosineSquaredAlpha);
|
|
97
|
+
return (1 - C) * f * sineAlpha * (sigma + C * sineSigma * (cosineTwiceSigmaMidpoint + C * cosineSigma * (2 * cosineTwiceSigmaMidpoint * cosineTwiceSigmaMidpoint - 1)));
|
|
98
|
+
}
|
|
99
|
+
function vincentyInverseFormula(ellipsoidGeodesic, major, minor, firstLongitude, firstLatitude, secondLongitude, secondLatitude) {
|
|
100
|
+
const eff = (major - minor) / major;
|
|
101
|
+
const l = secondLongitude - firstLongitude;
|
|
102
|
+
const u1 = Math.atan((1 - eff) * Math.tan(firstLatitude));
|
|
103
|
+
const u2 = Math.atan((1 - eff) * Math.tan(secondLatitude));
|
|
104
|
+
const cosineU1 = Math.cos(u1);
|
|
105
|
+
const sineU1 = Math.sin(u1);
|
|
106
|
+
const cosineU2 = Math.cos(u2);
|
|
107
|
+
const sineU2 = Math.sin(u2);
|
|
108
|
+
const cc = cosineU1 * cosineU2;
|
|
109
|
+
const cs = cosineU1 * sineU2;
|
|
110
|
+
const ss = sineU1 * sineU2;
|
|
111
|
+
const sc = sineU1 * cosineU2;
|
|
112
|
+
let lambda = l;
|
|
113
|
+
let lambdaDot = Math_default.TWO_PI;
|
|
114
|
+
let cosineLambda = Math.cos(lambda);
|
|
115
|
+
let sineLambda = Math.sin(lambda);
|
|
116
|
+
let sigma;
|
|
117
|
+
let cosineSigma;
|
|
118
|
+
let sineSigma;
|
|
119
|
+
let cosineSquaredAlpha;
|
|
120
|
+
let cosineTwiceSigmaMidpoint;
|
|
121
|
+
do {
|
|
122
|
+
cosineLambda = Math.cos(lambda);
|
|
123
|
+
sineLambda = Math.sin(lambda);
|
|
124
|
+
const temp = cs - sc * cosineLambda;
|
|
125
|
+
sineSigma = Math.sqrt(
|
|
126
|
+
cosineU2 * cosineU2 * sineLambda * sineLambda + temp * temp
|
|
127
|
+
);
|
|
128
|
+
cosineSigma = ss + cc * cosineLambda;
|
|
129
|
+
sigma = Math.atan2(sineSigma, cosineSigma);
|
|
130
|
+
let sineAlpha;
|
|
131
|
+
if (sineSigma === 0) {
|
|
132
|
+
sineAlpha = 0;
|
|
133
|
+
cosineSquaredAlpha = 1;
|
|
134
|
+
} else {
|
|
135
|
+
sineAlpha = cc * sineLambda / sineSigma;
|
|
136
|
+
cosineSquaredAlpha = 1 - sineAlpha * sineAlpha;
|
|
137
|
+
}
|
|
138
|
+
lambdaDot = lambda;
|
|
139
|
+
cosineTwiceSigmaMidpoint = cosineSigma - 2 * ss / cosineSquaredAlpha;
|
|
140
|
+
if (!isFinite(cosineTwiceSigmaMidpoint)) {
|
|
141
|
+
cosineTwiceSigmaMidpoint = 0;
|
|
142
|
+
}
|
|
143
|
+
lambda = l + computeDeltaLambda(
|
|
144
|
+
eff,
|
|
145
|
+
sineAlpha,
|
|
146
|
+
cosineSquaredAlpha,
|
|
147
|
+
sigma,
|
|
148
|
+
sineSigma,
|
|
149
|
+
cosineSigma,
|
|
150
|
+
cosineTwiceSigmaMidpoint
|
|
151
|
+
);
|
|
152
|
+
} while (Math.abs(lambda - lambdaDot) > Math_default.EPSILON12);
|
|
153
|
+
const uSquared = cosineSquaredAlpha * (major * major - minor * minor) / (minor * minor);
|
|
154
|
+
const A = 1 + uSquared * (4096 + uSquared * (uSquared * (320 - 175 * uSquared) - 768)) / 16384;
|
|
155
|
+
const B = uSquared * (256 + uSquared * (uSquared * (74 - 47 * uSquared) - 128)) / 1024;
|
|
156
|
+
const cosineSquaredTwiceSigmaMidpoint = cosineTwiceSigmaMidpoint * cosineTwiceSigmaMidpoint;
|
|
157
|
+
const deltaSigma = B * sineSigma * (cosineTwiceSigmaMidpoint + B * (cosineSigma * (2 * cosineSquaredTwiceSigmaMidpoint - 1) - B * cosineTwiceSigmaMidpoint * (4 * sineSigma * sineSigma - 3) * (4 * cosineSquaredTwiceSigmaMidpoint - 3) / 6) / 4);
|
|
158
|
+
const distance = minor * A * (sigma - deltaSigma);
|
|
159
|
+
const startHeading = Math.atan2(
|
|
160
|
+
cosineU2 * sineLambda,
|
|
161
|
+
cs - sc * cosineLambda
|
|
162
|
+
);
|
|
163
|
+
const endHeading = Math.atan2(cosineU1 * sineLambda, cs * cosineLambda - sc);
|
|
164
|
+
ellipsoidGeodesic._distance = distance;
|
|
165
|
+
ellipsoidGeodesic._startHeading = startHeading;
|
|
166
|
+
ellipsoidGeodesic._endHeading = endHeading;
|
|
167
|
+
ellipsoidGeodesic._uSquared = uSquared;
|
|
168
|
+
}
|
|
169
|
+
var scratchCart1 = new Cartesian3_default();
|
|
170
|
+
var scratchCart2 = new Cartesian3_default();
|
|
171
|
+
function computeProperties(ellipsoidGeodesic, start, end, ellipsoid) {
|
|
172
|
+
const firstCartesian = Cartesian3_default.normalize(
|
|
173
|
+
ellipsoid.cartographicToCartesian(start, scratchCart2),
|
|
174
|
+
scratchCart1
|
|
175
|
+
);
|
|
176
|
+
const lastCartesian = Cartesian3_default.normalize(
|
|
177
|
+
ellipsoid.cartographicToCartesian(end, scratchCart2),
|
|
178
|
+
scratchCart2
|
|
179
|
+
);
|
|
180
|
+
Check_default.typeOf.number.greaterThanOrEquals(
|
|
181
|
+
"value",
|
|
182
|
+
Math.abs(
|
|
183
|
+
Math.abs(Cartesian3_default.angleBetween(firstCartesian, lastCartesian)) - Math.PI
|
|
184
|
+
),
|
|
185
|
+
0.0125
|
|
186
|
+
);
|
|
187
|
+
vincentyInverseFormula(
|
|
188
|
+
ellipsoidGeodesic,
|
|
189
|
+
ellipsoid.maximumRadius,
|
|
190
|
+
ellipsoid.minimumRadius,
|
|
191
|
+
start.longitude,
|
|
192
|
+
start.latitude,
|
|
193
|
+
end.longitude,
|
|
194
|
+
end.latitude
|
|
195
|
+
);
|
|
196
|
+
ellipsoidGeodesic._start = Cartographic_default.clone(
|
|
197
|
+
start,
|
|
198
|
+
ellipsoidGeodesic._start
|
|
199
|
+
);
|
|
200
|
+
ellipsoidGeodesic._end = Cartographic_default.clone(end, ellipsoidGeodesic._end);
|
|
201
|
+
ellipsoidGeodesic._start.height = 0;
|
|
202
|
+
ellipsoidGeodesic._end.height = 0;
|
|
203
|
+
setConstants(ellipsoidGeodesic);
|
|
204
|
+
}
|
|
205
|
+
function EllipsoidGeodesic(start, end, ellipsoid) {
|
|
206
|
+
const e = ellipsoid ?? Ellipsoid_default.default;
|
|
207
|
+
this._ellipsoid = e;
|
|
208
|
+
this._start = new Cartographic_default();
|
|
209
|
+
this._end = new Cartographic_default();
|
|
210
|
+
this._constants = {};
|
|
211
|
+
this._startHeading = void 0;
|
|
212
|
+
this._endHeading = void 0;
|
|
213
|
+
this._distance = void 0;
|
|
214
|
+
this._uSquared = void 0;
|
|
215
|
+
if (defined_default(start) && defined_default(end)) {
|
|
216
|
+
computeProperties(this, start, end, e);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
Object.defineProperties(EllipsoidGeodesic.prototype, {
|
|
220
|
+
/**
|
|
221
|
+
* Gets the ellipsoid.
|
|
222
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
223
|
+
* @type {Ellipsoid}
|
|
224
|
+
* @readonly
|
|
225
|
+
*/
|
|
226
|
+
ellipsoid: {
|
|
227
|
+
get: function() {
|
|
228
|
+
return this._ellipsoid;
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
/**
|
|
232
|
+
* Gets the surface distance between the start and end point
|
|
233
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
234
|
+
* @type {number}
|
|
235
|
+
* @readonly
|
|
236
|
+
*/
|
|
237
|
+
surfaceDistance: {
|
|
238
|
+
get: function() {
|
|
239
|
+
Check_default.defined("distance", this._distance);
|
|
240
|
+
return this._distance;
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Gets the initial planetodetic point on the path.
|
|
245
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
246
|
+
* @type {Cartographic}
|
|
247
|
+
* @readonly
|
|
248
|
+
*/
|
|
249
|
+
start: {
|
|
250
|
+
get: function() {
|
|
251
|
+
return this._start;
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Gets the final planetodetic point on the path.
|
|
256
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
257
|
+
* @type {Cartographic}
|
|
258
|
+
* @readonly
|
|
259
|
+
*/
|
|
260
|
+
end: {
|
|
261
|
+
get: function() {
|
|
262
|
+
return this._end;
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
/**
|
|
266
|
+
* Gets the heading at the initial point.
|
|
267
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
268
|
+
* @type {number}
|
|
269
|
+
* @readonly
|
|
270
|
+
*/
|
|
271
|
+
startHeading: {
|
|
272
|
+
get: function() {
|
|
273
|
+
Check_default.defined("distance", this._distance);
|
|
274
|
+
return this._startHeading;
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
* Gets the heading at the final point.
|
|
279
|
+
* @memberof EllipsoidGeodesic.prototype
|
|
280
|
+
* @type {number}
|
|
281
|
+
* @readonly
|
|
282
|
+
*/
|
|
283
|
+
endHeading: {
|
|
284
|
+
get: function() {
|
|
285
|
+
Check_default.defined("distance", this._distance);
|
|
286
|
+
return this._endHeading;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
EllipsoidGeodesic.prototype.setEndPoints = function(start, end) {
|
|
291
|
+
Check_default.defined("start", start);
|
|
292
|
+
Check_default.defined("end", end);
|
|
293
|
+
computeProperties(this, start, end, this._ellipsoid);
|
|
294
|
+
};
|
|
295
|
+
EllipsoidGeodesic.prototype.interpolateUsingFraction = function(fraction, result) {
|
|
296
|
+
return this.interpolateUsingSurfaceDistance(
|
|
297
|
+
this._distance * fraction,
|
|
298
|
+
result
|
|
299
|
+
);
|
|
300
|
+
};
|
|
301
|
+
EllipsoidGeodesic.prototype.interpolateUsingSurfaceDistance = function(distance, result) {
|
|
302
|
+
Check_default.defined("distance", this._distance);
|
|
303
|
+
const constants = this._constants;
|
|
304
|
+
const s = constants.distanceRatio + distance / constants.b;
|
|
305
|
+
const cosine2S = Math.cos(2 * s);
|
|
306
|
+
const cosine4S = Math.cos(4 * s);
|
|
307
|
+
const cosine6S = Math.cos(6 * s);
|
|
308
|
+
const sine2S = Math.sin(2 * s);
|
|
309
|
+
const sine4S = Math.sin(4 * s);
|
|
310
|
+
const sine6S = Math.sin(6 * s);
|
|
311
|
+
const sine8S = Math.sin(8 * s);
|
|
312
|
+
const s2 = s * s;
|
|
313
|
+
const s3 = s * s2;
|
|
314
|
+
const u8Over256 = constants.u8Over256;
|
|
315
|
+
const u2Over4 = constants.u2Over4;
|
|
316
|
+
const u6Over64 = constants.u6Over64;
|
|
317
|
+
const u4Over16 = constants.u4Over16;
|
|
318
|
+
let sigma = 2 * s3 * u8Over256 * cosine2S / 3 + s * (1 - u2Over4 + 7 * u4Over16 / 4 - 15 * u6Over64 / 4 + 579 * u8Over256 / 64 - (u4Over16 - 15 * u6Over64 / 4 + 187 * u8Over256 / 16) * cosine2S - (5 * u6Over64 / 4 - 115 * u8Over256 / 16) * cosine4S - 29 * u8Over256 * cosine6S / 16) + (u2Over4 / 2 - u4Over16 + 71 * u6Over64 / 32 - 85 * u8Over256 / 16) * sine2S + (5 * u4Over16 / 16 - 5 * u6Over64 / 4 + 383 * u8Over256 / 96) * sine4S - s2 * ((u6Over64 - 11 * u8Over256 / 2) * sine2S + 5 * u8Over256 * sine4S / 2) + (29 * u6Over64 / 96 - 29 * u8Over256 / 16) * sine6S + 539 * u8Over256 * sine8S / 1536;
|
|
319
|
+
const theta = Math.asin(Math.sin(sigma) * constants.cosineAlpha);
|
|
320
|
+
const latitude = Math.atan(constants.a / constants.b * Math.tan(theta));
|
|
321
|
+
sigma = sigma - constants.sigma;
|
|
322
|
+
const cosineTwiceSigmaMidpoint = Math.cos(2 * constants.sigma + sigma);
|
|
323
|
+
const sineSigma = Math.sin(sigma);
|
|
324
|
+
const cosineSigma = Math.cos(sigma);
|
|
325
|
+
const cc = constants.cosineU * cosineSigma;
|
|
326
|
+
const ss = constants.sineU * sineSigma;
|
|
327
|
+
const lambda = Math.atan2(
|
|
328
|
+
sineSigma * constants.sineHeading,
|
|
329
|
+
cc - ss * constants.cosineHeading
|
|
330
|
+
);
|
|
331
|
+
const l = lambda - computeDeltaLambda(
|
|
332
|
+
constants.f,
|
|
333
|
+
constants.sineAlpha,
|
|
334
|
+
constants.cosineSquaredAlpha,
|
|
335
|
+
sigma,
|
|
336
|
+
sineSigma,
|
|
337
|
+
cosineSigma,
|
|
338
|
+
cosineTwiceSigmaMidpoint
|
|
339
|
+
);
|
|
340
|
+
if (defined_default(result)) {
|
|
341
|
+
result.longitude = this._start.longitude + l;
|
|
342
|
+
result.latitude = latitude;
|
|
343
|
+
result.height = 0;
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
return new Cartographic_default(this._start.longitude + l, latitude, 0);
|
|
347
|
+
};
|
|
348
|
+
var EllipsoidGeodesic_default = EllipsoidGeodesic;
|
|
349
|
+
|
|
350
|
+
export {
|
|
351
|
+
EllipsoidGeodesic_default
|
|
352
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.141.7
|
|
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
|
+
|
|
27
|
+
// packages/engine/Source/Core/GeometryOffsetAttribute.js
|
|
28
|
+
var GeometryOffsetAttribute = {
|
|
29
|
+
NONE: 0,
|
|
30
|
+
TOP: 1,
|
|
31
|
+
ALL: 2
|
|
32
|
+
};
|
|
33
|
+
Object.freeze(GeometryOffsetAttribute);
|
|
34
|
+
var GeometryOffsetAttribute_default = GeometryOffsetAttribute;
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
GeometryOffsetAttribute_default
|
|
38
|
+
};
|