org.outernet.cesium-unity 1.15.3-linux.1
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/CHANGES.md +420 -0
- package/CHANGES.md.meta +7 -0
- package/Editor/BuildCesiumForUnity.cs +186 -0
- package/Editor/BuildCesiumForUnity.cs.meta +11 -0
- package/Editor/Cesium3DTilesetEditor.cs +542 -0
- package/Editor/Cesium3DTilesetEditor.cs.meta +11 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs +66 -0
- package/Editor/CesiumBingMapsRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumCameraControllerEditor.cs +174 -0
- package/Editor/CesiumCameraControllerEditor.cs.meta +11 -0
- package/Editor/CesiumCameraManagerEditor.cs +65 -0
- package/Editor/CesiumCameraManagerEditor.cs.meta +11 -0
- package/Editor/CesiumCartographicPolygonEditor.cs +23 -0
- package/Editor/CesiumCartographicPolygonEditor.cs.meta +11 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs +41 -0
- package/Editor/CesiumDebugColorizeTilesRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumEditor.asmdef +26 -0
- package/Editor/CesiumEditor.asmdef.meta +7 -0
- package/Editor/CesiumEditorStyle.cs +188 -0
- package/Editor/CesiumEditorStyle.cs.meta +11 -0
- package/Editor/CesiumEditorUtility.cs +394 -0
- package/Editor/CesiumEditorUtility.cs.meta +11 -0
- package/Editor/CesiumEditorWindow.cs +447 -0
- package/Editor/CesiumEditorWindow.cs.meta +11 -0
- package/Editor/CesiumFlyToControllerEditor.cs +76 -0
- package/Editor/CesiumFlyToControllerEditor.cs.meta +11 -0
- package/Editor/CesiumGeoreferenceEditor.cs +277 -0
- package/Editor/CesiumGeoreferenceEditor.cs.meta +11 -0
- package/Editor/CesiumGlobeAnchorEditor.cs +202 -0
- package/Editor/CesiumGlobeAnchorEditor.cs.meta +11 -0
- package/Editor/CesiumInspectorGUI.cs +187 -0
- package/Editor/CesiumInspectorGUI.cs.meta +11 -0
- package/Editor/CesiumIonAsset.cs +192 -0
- package/Editor/CesiumIonAsset.cs.meta +11 -0
- package/Editor/CesiumIonAssetsWindow.cs +257 -0
- package/Editor/CesiumIonAssetsWindow.cs.meta +11 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs +87 -0
- package/Editor/CesiumIonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumIonServerManager.cs +153 -0
- package/Editor/CesiumIonServerManager.cs.meta +11 -0
- package/Editor/CesiumIonServerSelector.cs +127 -0
- package/Editor/CesiumIonServerSelector.cs.meta +11 -0
- package/Editor/CesiumIonSession.cs +102 -0
- package/Editor/CesiumIonSession.cs.meta +11 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs +102 -0
- package/Editor/CesiumPolygonRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumRasterOverlayEditor.cs +230 -0
- package/Editor/CesiumRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumSubSceneEditor.cs +201 -0
- package/Editor/CesiumSubSceneEditor.cs.meta +11 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs +88 -0
- package/Editor/CesiumTileMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs +111 -0
- package/Editor/CesiumWebMapServiceRasterOverlayEditor.cs.meta +11 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs +277 -0
- package/Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs.meta +3 -0
- package/Editor/CompileCesiumForUnityNative.cs +581 -0
- package/Editor/CompileCesiumForUnityNative.cs.meta +11 -0
- package/Editor/ConfigureReinterop.cs +255 -0
- package/Editor/ConfigureReinterop.cs.meta +11 -0
- package/Editor/Helpers.cs +102 -0
- package/Editor/Helpers.cs.meta +11 -0
- package/Editor/IonAssetsMultiColumnHeader.cs +45 -0
- package/Editor/IonAssetsMultiColumnHeader.cs.meta +11 -0
- package/Editor/IonAssetsTreeView.cs +214 -0
- package/Editor/IonAssetsTreeView.cs.meta +11 -0
- package/Editor/IonMissingAssetWindow.cs +65 -0
- package/Editor/IonMissingAssetWindow.cs.meta +11 -0
- package/Editor/IonTokenTroubleshootingWindow.cs +615 -0
- package/Editor/IonTokenTroubleshootingWindow.cs.meta +11 -0
- package/Editor/NativeDownloadHandler.cs +35 -0
- package/Editor/NativeDownloadHandler.cs.meta +11 -0
- package/Editor/QuickAddItem.cs +43 -0
- package/Editor/QuickAddItem.cs.meta +11 -0
- package/Editor/Resources/Cesium-128x128.png +0 -0
- package/Editor/Resources/Cesium-128x128.png.meta +98 -0
- package/Editor/Resources/Cesium-24x24.png +0 -0
- package/Editor/Resources/Cesium-24x24.png.meta +123 -0
- package/Editor/Resources/Cesium-64x64.png +0 -0
- package/Editor/Resources/Cesium-64x64.png.meta +98 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-dark.png.meta +123 -0
- package/Editor/Resources/Cesium-for-Unity-light.png +0 -0
- package/Editor/Resources/Cesium-for-Unity-light.png.meta +123 -0
- package/Editor/Resources/Cesium-icon-16x16.png +0 -0
- package/Editor/Resources/Cesium-icon-16x16.png.meta +98 -0
- package/Editor/Resources/FontAwesome/attribution.txt +9 -0
- package/Editor/Resources/FontAwesome/attribution.txt.meta +7 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png +0 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/book-reader-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/check-solid.png +0 -0
- package/Editor/Resources/FontAwesome/check-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/check-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/check-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/cloud-upload-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/folder.png +0 -0
- package/Editor/Resources/FontAwesome/folder.png.meta +147 -0
- package/Editor/Resources/FontAwesome/folder.svg +5 -0
- package/Editor/Resources/FontAwesome/folder.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png +0 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/hands-helping-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/key-solid.png +0 -0
- package/Editor/Resources/FontAwesome/key-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/key-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/key-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/plus-solid.png +0 -0
- package/Editor/Resources/FontAwesome/plus-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/plus-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sign-out-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png +0 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/sync-alt-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome/times-solid.png +0 -0
- package/Editor/Resources/FontAwesome/times-solid.png.meta +98 -0
- package/Editor/Resources/FontAwesome/times-solid.svg +1 -0
- package/Editor/Resources/FontAwesome/times-solid.svg.meta +7 -0
- package/Editor/Resources/FontAwesome.meta +8 -0
- package/Editor/Resources.meta +8 -0
- package/Editor/SelectIonTokenWindow.cs +249 -0
- package/Editor/SelectIonTokenWindow.cs.meta +11 -0
- package/Editor/arm64.meta +8 -0
- package/Editor/csc.rsp +1 -0
- package/Editor/csc.rsp.meta +7 -0
- package/Editor/libCesiumForUnityNative-Editor.so +0 -0
- package/Editor/libCesiumForUnityNative-Editor.so.meta +2 -0
- package/Editor/libCesiumForUnityNative-Runtime.so +0 -0
- package/Editor/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Editor/x86_64.meta +8 -0
- package/Editor.meta +8 -0
- package/LICENSE +201 -0
- package/LICENSE.meta +7 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so +0 -0
- package/Plugins/Standalone/libCesiumForUnityNative-Runtime.so.meta +2 -0
- package/Plugins/Standalone.meta +8 -0
- package/Plugins.meta +8 -0
- package/README.md +39 -0
- package/README.md.meta +7 -0
- package/Reinterop.deps.json +172 -0
- package/Reinterop.deps.json.meta +7 -0
- package/Reinterop.dll +0 -0
- package/Reinterop.dll.meta +79 -0
- package/Runtime/Cesium3DTile.cs +37 -0
- package/Runtime/Cesium3DTile.cs.meta +11 -0
- package/Runtime/Cesium3DTileset.cs +788 -0
- package/Runtime/Cesium3DTileset.cs.meta +11 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs +65 -0
- package/Runtime/Cesium3DTilesetLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumBackwardCompatibility.cs +163 -0
- package/Runtime/CesiumBackwardCompatibility.cs.meta +11 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs +72 -0
- package/Runtime/CesiumBingMapsRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumCameraController.cs +827 -0
- package/Runtime/CesiumCameraController.cs.meta +11 -0
- package/Runtime/CesiumCameraManager.cs +105 -0
- package/Runtime/CesiumCameraManager.cs.meta +11 -0
- package/Runtime/CesiumCartographicPolygon.cs +152 -0
- package/Runtime/CesiumCartographicPolygon.cs.meta +11 -0
- package/Runtime/CesiumCreditSystem.cs +343 -0
- package/Runtime/CesiumCreditSystem.cs.meta +11 -0
- package/Runtime/CesiumCreditSystemUI.cs +402 -0
- package/Runtime/CesiumCreditSystemUI.cs.meta +11 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs +21 -0
- package/Runtime/CesiumDebugColorizeTilesRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumEllipsoid.cs +107 -0
- package/Runtime/CesiumEllipsoid.cs.meta +11 -0
- package/Runtime/CesiumFeature.cs +279 -0
- package/Runtime/CesiumFeature.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdAttribute.cs +61 -0
- package/Runtime/CesiumFeatureIdAttribute.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdSet.cs +165 -0
- package/Runtime/CesiumFeatureIdSet.cs.meta +11 -0
- package/Runtime/CesiumFeatureIdTexture.cs +68 -0
- package/Runtime/CesiumFeatureIdTexture.cs.meta +11 -0
- package/Runtime/CesiumFlyToController.cs +539 -0
- package/Runtime/CesiumFlyToController.cs.meta +11 -0
- package/Runtime/CesiumGeoreference.cs +628 -0
- package/Runtime/CesiumGeoreference.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchor.cs +664 -0
- package/Runtime/CesiumGlobeAnchor.cs.meta +11 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs +105 -0
- package/Runtime/CesiumGlobeAnchorBackwardCompatibility0dot2dot0.cs.meta +11 -0
- package/Runtime/CesiumIntMatN.cs +398 -0
- package/Runtime/CesiumIntMatN.cs.meta +11 -0
- package/Runtime/CesiumIntVecN.cs +525 -0
- package/Runtime/CesiumIntVecN.cs.meta +11 -0
- package/Runtime/CesiumIonRasterOverlay.cs +110 -0
- package/Runtime/CesiumIonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumIonServer.cs +137 -0
- package/Runtime/CesiumIonServer.cs.meta +11 -0
- package/Runtime/CesiumMetadata.cs +33 -0
- package/Runtime/CesiumMetadata.cs.meta +11 -0
- package/Runtime/CesiumMetadataValue.cs +1764 -0
- package/Runtime/CesiumMetadataValue.cs.meta +11 -0
- package/Runtime/CesiumMetadataValueType.cs +203 -0
- package/Runtime/CesiumMetadataValueType.cs.meta +11 -0
- package/Runtime/CesiumModelMetadata.cs +26 -0
- package/Runtime/CesiumModelMetadata.cs.meta +11 -0
- package/Runtime/CesiumObjectPool.cs +74 -0
- package/Runtime/CesiumObjectPool.cs.meta +11 -0
- package/Runtime/CesiumObjectPools.cs +39 -0
- package/Runtime/CesiumObjectPools.cs.meta +11 -0
- package/Runtime/CesiumOriginShift.cs +146 -0
- package/Runtime/CesiumOriginShift.cs.meta +11 -0
- package/Runtime/CesiumPointCloudRenderer.cs +246 -0
- package/Runtime/CesiumPointCloudRenderer.cs.meta +11 -0
- package/Runtime/CesiumPointCloudShading.cs +76 -0
- package/Runtime/CesiumPointCloudShading.cs.meta +11 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs +109 -0
- package/Runtime/CesiumPolygonRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumPrimitiveFeatures.cs +130 -0
- package/Runtime/CesiumPrimitiveFeatures.cs.meta +11 -0
- package/Runtime/CesiumPropertyArray.cs +64 -0
- package/Runtime/CesiumPropertyArray.cs.meta +11 -0
- package/Runtime/CesiumPropertyTable.cs +126 -0
- package/Runtime/CesiumPropertyTable.cs.meta +11 -0
- package/Runtime/CesiumPropertyTableProperty.cs +1734 -0
- package/Runtime/CesiumPropertyTableProperty.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlay.cs +239 -0
- package/Runtime/CesiumRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs +65 -0
- package/Runtime/CesiumRasterOverlayLoadFailureDetails.cs.meta +11 -0
- package/Runtime/CesiumRuntime.asmdef +32 -0
- package/Runtime/CesiumRuntime.asmdef.meta +7 -0
- package/Runtime/CesiumRuntime.cs +3 -0
- package/Runtime/CesiumRuntime.cs.meta +11 -0
- package/Runtime/CesiumRuntimeSettings.cs +188 -0
- package/Runtime/CesiumRuntimeSettings.cs.meta +11 -0
- package/Runtime/CesiumSampleHeightResult.cs +47 -0
- package/Runtime/CesiumSampleHeightResult.cs.meta +11 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs +93 -0
- package/Runtime/CesiumSimplePlanarEllipsoidCurve.cs.meta +11 -0
- package/Runtime/CesiumSubScene.cs +473 -0
- package/Runtime/CesiumSubScene.cs.meta +11 -0
- package/Runtime/CesiumTileExcluder.cs +47 -0
- package/Runtime/CesiumTileExcluder.cs.meta +11 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs +93 -0
- package/Runtime/CesiumTileMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs +129 -0
- package/Runtime/CesiumWebMapServiceRasterOverlay.cs.meta +11 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs +414 -0
- package/Runtime/CesiumWebMapTileServiceRasterOverlay.cs.meta +3 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs +75 -0
- package/Runtime/CesiumWgs84Ellipsoid.cs.meta +11 -0
- package/Runtime/ConfigureReinterop.cs +926 -0
- package/Runtime/ConfigureReinterop.cs.meta +11 -0
- package/Runtime/Helpers.cs +122 -0
- package/Runtime/Helpers.cs.meta +11 -0
- package/Runtime/ICesiumRestartable.cs +17 -0
- package/Runtime/ICesiumRestartable.cs.meta +11 -0
- package/Runtime/NativeCoroutine.cs +28 -0
- package/Runtime/NativeCoroutine.cs.meta +11 -0
- package/Runtime/NativeDownloadHandler.cs +29 -0
- package/Runtime/NativeDownloadHandler.cs.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab +78 -0
- package/Runtime/Resources/CesiumCreditSystem.prefab.meta +7 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss +2 -0
- package/Runtime/Resources/CesiumCreditSystemRuntimeTheme.tss.meta +11 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml +4 -0
- package/Runtime/Resources/CesiumCreditSystemUI.uxml.meta +10 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset +38 -0
- package/Runtime/Resources/CesiumCreditSystemUIPanelSettings.asset.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat +232 -0
- package/Runtime/Resources/CesiumDefaultTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph +14271 -0
- package/Runtime/Resources/CesiumDefaultTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl +156 -0
- package/Runtime/Resources/CesiumPointCloudShading.hlsl.meta +7 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat +125 -0
- package/Runtime/Resources/CesiumPointCloudShadingMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader +73 -0
- package/Runtime/Resources/CesiumPointCloudShadingShader.shader.meta +10 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph +2207 -0
- package/Runtime/Resources/CesiumRasterOverlay.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph +722 -0
- package/Runtime/Resources/CesiumSelectTexCoords.shadersubgraph.meta +10 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat +261 -0
- package/Runtime/Resources/CesiumUnlitTilesetMaterial.mat.meta +8 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph +5873 -0
- package/Runtime/Resources/CesiumUnlitTilesetShader.shadergraph.meta +10 -0
- package/Runtime/Resources/DynamicCamera.prefab +253 -0
- package/Runtime/Resources/DynamicCamera.prefab.meta +7 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph +2171 -0
- package/Runtime/Resources/TransformTextureCoordinates.shadersubgraph.meta +10 -0
- package/Runtime/Resources/green1x1.png +0 -0
- package/Runtime/Resources/green1x1.png.meta +123 -0
- package/Runtime/Resources.meta +8 -0
- package/Runtime/TestGltfModel.cs +56 -0
- package/Runtime/TestGltfModel.cs.meta +11 -0
- package/Runtime/TestReinterop.cs +21 -0
- package/Runtime/TestReinterop.cs.meta +11 -0
- package/Runtime/UnityLifetime.cs +27 -0
- package/Runtime/UnityLifetime.cs.meta +11 -0
- package/Runtime/WaitForTask.cs +25 -0
- package/Runtime/WaitForTask.cs.meta +11 -0
- package/Runtime/csc.rsp +1 -0
- package/Runtime/csc.rsp.meta +7 -0
- package/Runtime.meta +8 -0
- package/ThirdParty.json +27 -0
- package/ThirdParty.json.meta +7 -0
- package/WGS84.asset +18 -0
- package/WGS84.asset.meta +8 -0
- package/package.json +29 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
using Unity.Mathematics;
|
|
2
|
+
using UnityEditor;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
using UnityEngine.Serialization;
|
|
5
|
+
|
|
6
|
+
namespace CesiumForUnity
|
|
7
|
+
{
|
|
8
|
+
[ExecuteInEditMode]
|
|
9
|
+
[AddComponentMenu("")]
|
|
10
|
+
[DefaultExecutionOrder(-1000000)]
|
|
11
|
+
internal class CesiumGlobeAnchorBackwardCompatibility0dot2dot0 : CesiumGlobeAnchor, IBackwardCompatibilityComponent<CesiumGlobeAnchor>
|
|
12
|
+
{
|
|
13
|
+
public enum CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2
|
|
14
|
+
{
|
|
15
|
+
None,
|
|
16
|
+
LongitudeLatitudeHeight,
|
|
17
|
+
EarthCenteredEarthFixed,
|
|
18
|
+
UnityCoordinates
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[FormerlySerializedAs("_adjustOrientationForGlobeWhenMoving")]
|
|
22
|
+
public bool _adjustOrientationForGlobeWhenMoving0dot2dot0 = false;
|
|
23
|
+
[FormerlySerializedAs("_detectTransformChanges")]
|
|
24
|
+
public bool _detectTransformChanges0dot2dot0 = false;
|
|
25
|
+
[FormerlySerializedAs("_positionAuthority")]
|
|
26
|
+
public CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2 _positionAuthority0dot2dot0 = CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.None;
|
|
27
|
+
[FormerlySerializedAs("_latitude")]
|
|
28
|
+
public double _latitude0dot2dot0 = 0.0;
|
|
29
|
+
[FormerlySerializedAs("_longitude")]
|
|
30
|
+
public double _longitude0dot2dot0 = 0.0;
|
|
31
|
+
[FormerlySerializedAs("_height")]
|
|
32
|
+
public double _height0dot2dot0 = 0.0;
|
|
33
|
+
[FormerlySerializedAs("_ecefX")]
|
|
34
|
+
public double _ecefX0dot2dot0 = 0.0;
|
|
35
|
+
[FormerlySerializedAs("_ecefY")]
|
|
36
|
+
public double _ecefY0dot2dot0 = 0.0;
|
|
37
|
+
[FormerlySerializedAs("_ecefZ")]
|
|
38
|
+
public double _ecefZ0dot2dot0 = 0.0;
|
|
39
|
+
[FormerlySerializedAs("_unityX")]
|
|
40
|
+
public double _unityX0dot2dot0 = 0.0;
|
|
41
|
+
[FormerlySerializedAs("_unityY")]
|
|
42
|
+
public double _unityY0dot2dot0 = 0.0;
|
|
43
|
+
[FormerlySerializedAs("_unityZ")]
|
|
44
|
+
public double _unityZ0dot2dot0 = 0.0;
|
|
45
|
+
|
|
46
|
+
#if UNITY_EDITOR
|
|
47
|
+
[CustomEditor(typeof(CesiumGlobeAnchorBackwardCompatibility0dot2dot0))]
|
|
48
|
+
internal class CesiumGlobeAnchorBackwardCompatibility0dot2dot0Editor : Editor
|
|
49
|
+
{
|
|
50
|
+
public override void OnInspectorGUI()
|
|
51
|
+
{
|
|
52
|
+
if (GUILayout.Button("Upgrade"))
|
|
53
|
+
{
|
|
54
|
+
CesiumGlobeAnchorBackwardCompatibility0dot2dot0 o = (CesiumGlobeAnchorBackwardCompatibility0dot2dot0)this.target;
|
|
55
|
+
CesiumBackwardCompatibility<CesiumGlobeAnchor>.Upgrade(o);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
void OnEnable()
|
|
61
|
+
{
|
|
62
|
+
CesiumBackwardCompatibility<CesiumGlobeAnchor>.Upgrade(this);
|
|
63
|
+
}
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
public string VersionToBeUpgraded => "v0.2.0";
|
|
67
|
+
|
|
68
|
+
public void Upgrade(GameObject gameObject, CesiumGlobeAnchor upgraded)
|
|
69
|
+
{
|
|
70
|
+
// Temporarily disable orientation adjustment so that we can set the position without
|
|
71
|
+
// risking rotating the object.
|
|
72
|
+
upgraded.adjustOrientationForGlobeWhenMoving = false;
|
|
73
|
+
upgraded.detectTransformChanges = false;
|
|
74
|
+
|
|
75
|
+
switch (this._positionAuthority0dot2dot0)
|
|
76
|
+
{
|
|
77
|
+
case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.None:
|
|
78
|
+
// This shouldn't happen, but if it does, just leave the position at the default.
|
|
79
|
+
break;
|
|
80
|
+
case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.LongitudeLatitudeHeight:
|
|
81
|
+
upgraded.longitudeLatitudeHeight = new double3(this._longitude0dot2dot0, this._latitude0dot2dot0, this._height0dot2dot0);
|
|
82
|
+
break;
|
|
83
|
+
case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.EarthCenteredEarthFixed:
|
|
84
|
+
upgraded.positionGlobeFixed = new double3(this._ecefX0dot2dot0, this._ecefY0dot2dot0, this._ecefZ0dot2dot0);
|
|
85
|
+
break;
|
|
86
|
+
case CesiumGlobeAnchorPositionAuthorityBackwardCompatibility0dot1dot2.UnityCoordinates:
|
|
87
|
+
// Any backward compatibility for CesiumGeoreference must have a more negative
|
|
88
|
+
// DefaultExecutionOrder so that the real CesiumGeoreference is created first.
|
|
89
|
+
// If this component is not nested inside a CesiumGeoreference, converting Unity coordinates
|
|
90
|
+
// to ECEF is impossible, so just keep the default position.
|
|
91
|
+
CesiumGeoreference georeference = this.GetComponentInParent<CesiumGeoreference>();
|
|
92
|
+
if (georeference != null)
|
|
93
|
+
{
|
|
94
|
+
georeference.Initialize();
|
|
95
|
+
double3 ecef = georeference.TransformUnityPositionToEarthCenteredEarthFixed(new double3(this._unityX0dot2dot0, this._unityY0dot2dot0, this._unityZ0dot2dot0));
|
|
96
|
+
upgraded.positionGlobeFixed = ecef;
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
upgraded.adjustOrientationForGlobeWhenMoving = this._adjustOrientationForGlobeWhenMoving0dot2dot0;
|
|
102
|
+
upgraded.detectTransformChanges = this._detectTransformChanges0dot2dot0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
using System.Diagnostics;
|
|
2
|
+
using System;
|
|
3
|
+
using Unity.Mathematics;
|
|
4
|
+
|
|
5
|
+
namespace CesiumForUnity
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
/// Represents a mat2x2 with signed integer components. This preserves the exact type
|
|
9
|
+
/// of the integer components so they can be properly converted (or not converted)
|
|
10
|
+
/// to other types.
|
|
11
|
+
/// </summary>
|
|
12
|
+
/// <remarks>
|
|
13
|
+
/// Internally, this is used to store all signed integer mat types, including i8mat2x2,
|
|
14
|
+
/// i16mat2x2, i32mat2x2, and i64mat2x2. The intended type is conveyed through CesiumMetadataComponentType.
|
|
15
|
+
/// </remarks>
|
|
16
|
+
internal struct CesiumIntMat2x2
|
|
17
|
+
{
|
|
18
|
+
public CesiumMetadataComponentType componentType
|
|
19
|
+
{
|
|
20
|
+
get; private set;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Column-major order
|
|
24
|
+
public CesiumIntVec2 c0
|
|
25
|
+
{
|
|
26
|
+
get; private set;
|
|
27
|
+
}
|
|
28
|
+
public CesiumIntVec2 c1
|
|
29
|
+
{
|
|
30
|
+
get; private set;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public CesiumIntMat2x2(CesiumIntVec2 v0, CesiumIntVec2 v1)
|
|
34
|
+
{
|
|
35
|
+
Debug.Assert(v0.componentType == v1.componentType);
|
|
36
|
+
this.componentType = v0.componentType;
|
|
37
|
+
this.c0 = v0;
|
|
38
|
+
this.c1 = v1;
|
|
39
|
+
}
|
|
40
|
+
public CesiumIntMat2x2(int2 v0, int2 v1)
|
|
41
|
+
{
|
|
42
|
+
this.componentType = CesiumMetadataComponentType.Int32;
|
|
43
|
+
this.c0 = new CesiumIntVec2(v0);
|
|
44
|
+
this.c1 = new CesiumIntVec2(v1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public CesiumIntVec2 this[int index]
|
|
48
|
+
{
|
|
49
|
+
get
|
|
50
|
+
{
|
|
51
|
+
switch (index)
|
|
52
|
+
{
|
|
53
|
+
case 0:
|
|
54
|
+
return this.c0;
|
|
55
|
+
case 1:
|
|
56
|
+
return this.c1;
|
|
57
|
+
default:
|
|
58
|
+
throw new System.IndexOutOfRangeException();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/// <summary>
|
|
65
|
+
/// Represents a mat3x3 with signed integer components. This preserves the exact type
|
|
66
|
+
/// of the integer components so they can be properly converted (or not converted)
|
|
67
|
+
/// to other types.
|
|
68
|
+
/// </summary>
|
|
69
|
+
/// <remarks>
|
|
70
|
+
/// Internally, this is used to store all signed integer mat types, including i8mat3x3,
|
|
71
|
+
/// i16mat3x3, i32mat3x3, and i64mat3x3. The intended type is conveyed through CesiumMetadataComponentType.
|
|
72
|
+
/// </remarks>
|
|
73
|
+
internal struct CesiumIntMat3x3
|
|
74
|
+
{
|
|
75
|
+
public CesiumMetadataComponentType componentType
|
|
76
|
+
{
|
|
77
|
+
get; private set;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Column-major order
|
|
81
|
+
public CesiumIntVec3 c0
|
|
82
|
+
{
|
|
83
|
+
get; private set;
|
|
84
|
+
}
|
|
85
|
+
public CesiumIntVec3 c1
|
|
86
|
+
{
|
|
87
|
+
get; private set;
|
|
88
|
+
}
|
|
89
|
+
public CesiumIntVec3 c2
|
|
90
|
+
{
|
|
91
|
+
get; private set;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public CesiumIntMat3x3(CesiumIntVec3 v0, CesiumIntVec3 v1, CesiumIntVec3 v2)
|
|
95
|
+
{
|
|
96
|
+
Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
|
|
97
|
+
this.componentType = v0.componentType;
|
|
98
|
+
this.c0 = v0;
|
|
99
|
+
this.c1 = v1;
|
|
100
|
+
this.c2 = v2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public CesiumIntMat3x3(int3 v0, int3 v1, int3 v2)
|
|
104
|
+
{
|
|
105
|
+
this.componentType = CesiumMetadataComponentType.Int32;
|
|
106
|
+
this.c0 = new CesiumIntVec3(v0);
|
|
107
|
+
this.c1 = new CesiumIntVec3(v1);
|
|
108
|
+
this.c2 = new CesiumIntVec3(v2);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public CesiumIntVec3 this[int index]
|
|
112
|
+
{
|
|
113
|
+
get
|
|
114
|
+
{
|
|
115
|
+
switch (index)
|
|
116
|
+
{
|
|
117
|
+
case 0:
|
|
118
|
+
return this.c0;
|
|
119
|
+
case 1:
|
|
120
|
+
return this.c1;
|
|
121
|
+
case 2:
|
|
122
|
+
return this.c2;
|
|
123
|
+
default:
|
|
124
|
+
throw new System.IndexOutOfRangeException();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/// <summary>
|
|
131
|
+
/// Represents a mat4x4 with signed integer components. This preserves the exact type
|
|
132
|
+
/// of the integer components so they can be properly converted (or not converted)
|
|
133
|
+
/// to other types.
|
|
134
|
+
/// </summary>
|
|
135
|
+
/// <remarks>
|
|
136
|
+
/// Internally, this is used to store all signed integer mat types, including i8mat4x4,
|
|
137
|
+
/// i16mat4x4, i32mat4x4, and i64mat4x4. The intended type is conveyed through CesiumMetadataComponentType.
|
|
138
|
+
/// </remarks>
|
|
139
|
+
internal struct CesiumIntMat4x4
|
|
140
|
+
{
|
|
141
|
+
public CesiumMetadataComponentType componentType
|
|
142
|
+
{
|
|
143
|
+
get; private set;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Column-major order
|
|
147
|
+
public CesiumIntVec4 c0
|
|
148
|
+
{
|
|
149
|
+
get; private set;
|
|
150
|
+
}
|
|
151
|
+
public CesiumIntVec4 c1
|
|
152
|
+
{
|
|
153
|
+
get; private set;
|
|
154
|
+
}
|
|
155
|
+
public CesiumIntVec4 c2
|
|
156
|
+
{
|
|
157
|
+
get; private set;
|
|
158
|
+
}
|
|
159
|
+
public CesiumIntVec4 c3
|
|
160
|
+
{
|
|
161
|
+
get; private set;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
public CesiumIntMat4x4(CesiumIntVec4 v0, CesiumIntVec4 v1, CesiumIntVec4 v2, CesiumIntVec4 v3)
|
|
165
|
+
{
|
|
166
|
+
Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
|
|
167
|
+
this.componentType = v0.componentType;
|
|
168
|
+
this.c0 = v0;
|
|
169
|
+
this.c1 = v1;
|
|
170
|
+
this.c2 = v2;
|
|
171
|
+
this.c3 = v3;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
public CesiumIntMat4x4(int4 v0, int4 v1, int4 v2, int4 v3)
|
|
175
|
+
{
|
|
176
|
+
this.componentType = CesiumMetadataComponentType.Int32;
|
|
177
|
+
this.c0 = new CesiumIntVec4(v0);
|
|
178
|
+
this.c1 = new CesiumIntVec4(v1);
|
|
179
|
+
this.c2 = new CesiumIntVec4(v2);
|
|
180
|
+
this.c3 = new CesiumIntVec4(v3);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
public CesiumIntVec4 this[int index]
|
|
184
|
+
{
|
|
185
|
+
get
|
|
186
|
+
{
|
|
187
|
+
switch (index)
|
|
188
|
+
{
|
|
189
|
+
case 0:
|
|
190
|
+
return this.c0;
|
|
191
|
+
case 1:
|
|
192
|
+
return this.c1;
|
|
193
|
+
case 2:
|
|
194
|
+
return this.c2;
|
|
195
|
+
case 3:
|
|
196
|
+
return this.c3;
|
|
197
|
+
default:
|
|
198
|
+
throw new System.IndexOutOfRangeException();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/// <summary>
|
|
205
|
+
/// Represents a mat2x2 with unsigned integer components. This preserves the accuracy of the integer
|
|
206
|
+
/// values, which could otherwise lose precision if represented as doubles.
|
|
207
|
+
/// </summary>
|
|
208
|
+
/// <remarks>
|
|
209
|
+
/// Internally, this is used to store all unsigned integer mat types, including u8mat2x2,
|
|
210
|
+
/// u16mat2x2, u32mat2x2, and u64mat2x2. The intended type is conveyed through CesiumMetadataComponentType.
|
|
211
|
+
/// </remarks>
|
|
212
|
+
internal struct CesiumUintMat2x2
|
|
213
|
+
{
|
|
214
|
+
public CesiumMetadataComponentType componentType
|
|
215
|
+
{
|
|
216
|
+
get; private set;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Column-major order
|
|
220
|
+
public CesiumUintVec2 c0
|
|
221
|
+
{
|
|
222
|
+
get; private set;
|
|
223
|
+
}
|
|
224
|
+
public CesiumUintVec2 c1
|
|
225
|
+
{
|
|
226
|
+
get; private set;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
public CesiumUintMat2x2(CesiumUintVec2 v0, CesiumUintVec2 v1)
|
|
230
|
+
{
|
|
231
|
+
Debug.Assert(v0.componentType == v1.componentType);
|
|
232
|
+
this.componentType = v0.componentType;
|
|
233
|
+
this.c0 = v0;
|
|
234
|
+
this.c1 = v1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
public CesiumUintMat2x2(uint2 v0, uint2 v1)
|
|
238
|
+
{
|
|
239
|
+
this.componentType = CesiumMetadataComponentType.Uint32;
|
|
240
|
+
this.c0 = new CesiumUintVec2(v0);
|
|
241
|
+
this.c1 = new CesiumUintVec2(v1);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
public CesiumUintVec2 this[int index]
|
|
245
|
+
{
|
|
246
|
+
get
|
|
247
|
+
{
|
|
248
|
+
switch (index)
|
|
249
|
+
{
|
|
250
|
+
case 0:
|
|
251
|
+
return c0;
|
|
252
|
+
case 1:
|
|
253
|
+
return c1;
|
|
254
|
+
default:
|
|
255
|
+
throw new System.IndexOutOfRangeException();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/// <summary>
|
|
262
|
+
/// Represents a mat3x3 with unsigned integer components. This preserves the accuracy of the integer
|
|
263
|
+
/// values, which could otherwise lose precision if represented as doubles.
|
|
264
|
+
/// </summary>
|
|
265
|
+
/// <remarks>
|
|
266
|
+
/// Internally, this is used to store all unsigned integer mat types, including u8mat3x3,
|
|
267
|
+
/// u16mat3x3, u32mat3x3, and u64mat3x3. The intended type is conveyed through CesiumMetadataComponentType.
|
|
268
|
+
/// </remarks>
|
|
269
|
+
internal struct CesiumUintMat3x3
|
|
270
|
+
{
|
|
271
|
+
public CesiumMetadataComponentType componentType
|
|
272
|
+
{
|
|
273
|
+
get; private set;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Column-major order
|
|
277
|
+
public CesiumUintVec3 c0
|
|
278
|
+
{
|
|
279
|
+
get; private set;
|
|
280
|
+
}
|
|
281
|
+
public CesiumUintVec3 c1
|
|
282
|
+
{
|
|
283
|
+
get; private set;
|
|
284
|
+
}
|
|
285
|
+
public CesiumUintVec3 c2
|
|
286
|
+
{
|
|
287
|
+
get; private set;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
public CesiumUintMat3x3(CesiumUintVec3 v0, CesiumUintVec3 v1, CesiumUintVec3 v2)
|
|
291
|
+
{
|
|
292
|
+
Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
|
|
293
|
+
this.componentType = v0.componentType;
|
|
294
|
+
this.c0 = v0;
|
|
295
|
+
this.c1 = v1;
|
|
296
|
+
this.c2 = v2;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
public CesiumUintMat3x3(uint3 v0, uint3 v1, uint3 v2)
|
|
300
|
+
{
|
|
301
|
+
this.componentType = CesiumMetadataComponentType.Uint32;
|
|
302
|
+
this.c0 = new CesiumUintVec3(v0);
|
|
303
|
+
this.c1 = new CesiumUintVec3(v1);
|
|
304
|
+
this.c2 = new CesiumUintVec3(v2);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
public CesiumUintVec3 this[int index]
|
|
308
|
+
{
|
|
309
|
+
get
|
|
310
|
+
{
|
|
311
|
+
switch (index)
|
|
312
|
+
{
|
|
313
|
+
case 0:
|
|
314
|
+
return this.c0;
|
|
315
|
+
case 1:
|
|
316
|
+
return this.c1;
|
|
317
|
+
case 2:
|
|
318
|
+
return this.c2;
|
|
319
|
+
default:
|
|
320
|
+
throw new System.IndexOutOfRangeException();
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/// <summary>
|
|
327
|
+
/// Represents a mat4x4 with unsigned integer components. This preserves the accuracy of the integer
|
|
328
|
+
/// values, which could otherwise lose precision if represented as doubles.
|
|
329
|
+
/// </summary>
|
|
330
|
+
/// <remarks>
|
|
331
|
+
/// Internally, this is used to store all unsigned integer mat types, including u8mat4x4,
|
|
332
|
+
/// u16mat4x4, u32mat4x4, and u64mat4x4. The intended type is conveyed through CesiumMetadataComponentType.
|
|
333
|
+
/// </remarks>
|
|
334
|
+
internal struct CesiumUintMat4x4
|
|
335
|
+
{
|
|
336
|
+
public CesiumMetadataComponentType componentType
|
|
337
|
+
{
|
|
338
|
+
get; private set;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Column-major order
|
|
342
|
+
public CesiumUintVec4 c0
|
|
343
|
+
{
|
|
344
|
+
get; private set;
|
|
345
|
+
}
|
|
346
|
+
public CesiumUintVec4 c1
|
|
347
|
+
{
|
|
348
|
+
get; private set;
|
|
349
|
+
}
|
|
350
|
+
public CesiumUintVec4 c2
|
|
351
|
+
{
|
|
352
|
+
get; private set;
|
|
353
|
+
}
|
|
354
|
+
public CesiumUintVec4 c3
|
|
355
|
+
{
|
|
356
|
+
get; private set;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
public CesiumUintMat4x4(CesiumUintVec4 v0, CesiumUintVec4 v1, CesiumUintVec4 v2, CesiumUintVec4 v3)
|
|
360
|
+
{
|
|
361
|
+
Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
|
|
362
|
+
this.componentType = v0.componentType;
|
|
363
|
+
this.c0 = v0;
|
|
364
|
+
this.c1 = v1;
|
|
365
|
+
this.c2 = v2;
|
|
366
|
+
this.c3 = v3;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
public CesiumUintMat4x4(uint4 v0, uint4 v1, uint4 v2, uint4 v3)
|
|
370
|
+
{
|
|
371
|
+
this.componentType = CesiumMetadataComponentType.Uint32;
|
|
372
|
+
this.c0 = new CesiumUintVec4(v0);
|
|
373
|
+
this.c1 = new CesiumUintVec4(v1);
|
|
374
|
+
this.c2 = new CesiumUintVec4(v2);
|
|
375
|
+
this.c3 = new CesiumUintVec4(v3);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
public CesiumUintVec4 this[int index]
|
|
379
|
+
{
|
|
380
|
+
get
|
|
381
|
+
{
|
|
382
|
+
switch (index)
|
|
383
|
+
{
|
|
384
|
+
case 0:
|
|
385
|
+
return this.c0;
|
|
386
|
+
case 1:
|
|
387
|
+
return this.c1;
|
|
388
|
+
case 2:
|
|
389
|
+
return this.c2;
|
|
390
|
+
case 3:
|
|
391
|
+
return this.c3;
|
|
392
|
+
default:
|
|
393
|
+
throw new System.IndexOutOfRangeException();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|