@openglobus/og 0.10.6 → 0.11.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.
Files changed (163) hide show
  1. package/package.json +10 -7
  2. package/src/og/Extent.js +1 -1
  3. package/src/og/LonLat.js +7 -2
  4. package/src/og/Popup.js +2 -1
  5. package/src/og/camera/PlanetCamera.js +4 -2
  6. package/src/og/entity/EntityCollection.js +1 -1
  7. package/src/og/entity/LabelHandler.js +366 -74
  8. package/src/og/entity/Polyline.js +3 -2
  9. package/src/og/layer/KML.js +7 -5
  10. package/src/og/layer/Vector.js +5 -0
  11. package/src/og/layer/index.js +2 -1
  12. package/src/og/math/Vec2.js +448 -448
  13. package/src/og/math/Vec3.js +759 -757
  14. package/src/og/math/Vec4.js +216 -215
  15. package/src/og/scene/Planet.js +14 -4
  16. package/src/og/segment/SegmentLonLat.js +7 -0
  17. package/src/og/terrain/GlobusTerrain.js +4 -0
  18. package/src/og/utils/GeoImageCreator.js +123 -121
  19. package/src/og/utils/Loader.js +81 -80
  20. package/src/og/utils/NormalMapCreator.js +320 -318
  21. package/src/og/utils/VectorTileCreator.js +251 -250
  22. package/src/og/webgl/Framebuffer.js +265 -264
  23. package/src/og/webgl/Handler.js +1022 -1022
  24. package/src/og/webgl/Multisample.js +169 -168
  25. package/src/og/webgl/ProgramController.js +113 -112
  26. package/types/Clock.d.ts +90 -0
  27. package/types/Deferred.d.ts +6 -0
  28. package/types/Events.d.ts +73 -0
  29. package/types/Extent.d.ts +162 -0
  30. package/types/Globe.d.ts +80 -0
  31. package/types/ImageCanvas.d.ts +121 -0
  32. package/types/Lock.d.ts +12 -0
  33. package/types/LonLat.d.ts +108 -0
  34. package/types/Popup.d.ts +38 -0
  35. package/types/QueueArray.d.ts +15 -0
  36. package/types/Rectangle.d.ts +74 -0
  37. package/types/Stack.d.ts +15 -0
  38. package/types/ajax.d.ts +24 -0
  39. package/types/arial.d.ts +48 -0
  40. package/types/astro/astro.d.ts +38 -0
  41. package/types/astro/earth.d.ts +6 -0
  42. package/types/astro/jd.d.ts +254 -0
  43. package/types/bv/Box.d.ts +25 -0
  44. package/types/bv/Sphere.d.ts +32 -0
  45. package/types/bv/index.d.ts +3 -0
  46. package/types/camera/Camera.d.ts +303 -0
  47. package/types/camera/Frustum.d.ts +129 -0
  48. package/types/camera/PlanetCamera.d.ts +222 -0
  49. package/types/camera/index.d.ts +3 -0
  50. package/types/cons.d.ts +40 -0
  51. package/types/control/CompassButton.d.ts +17 -0
  52. package/types/control/Control.d.ts +101 -0
  53. package/types/control/DebugInfo.d.ts +16 -0
  54. package/types/control/EarthCoordinates.d.ts +47 -0
  55. package/types/control/GeoImageDragControl.d.ts +6 -0
  56. package/types/control/KeyboardNavigation.d.ts +22 -0
  57. package/types/control/LayerSwitcher.d.ts +23 -0
  58. package/types/control/Lighting.d.ts +16 -0
  59. package/types/control/ScaleControl.d.ts +22 -0
  60. package/types/control/ShowFps.d.ts +12 -0
  61. package/types/control/SimpleNavigation.d.ts +28 -0
  62. package/types/control/Sun.d.ts +52 -0
  63. package/types/control/ToggleWireframe.d.ts +12 -0
  64. package/types/control/ZoomControl.d.ts +28 -0
  65. package/types/control/index.d.ts +15 -0
  66. package/types/ellipsoid/Ellipsoid.d.ts +142 -0
  67. package/types/ellipsoid/index.d.ts +3 -0
  68. package/types/ellipsoid/wgs84.d.ts +5 -0
  69. package/types/entity/BaseBillboard.d.ts +208 -0
  70. package/types/entity/Billboard.d.ts +94 -0
  71. package/types/entity/BillboardHandler.d.ts +74 -0
  72. package/types/entity/Entity.d.ts +330 -0
  73. package/types/entity/EntityCollection.d.ts +303 -0
  74. package/types/entity/Geometry.d.ts +72 -0
  75. package/types/entity/GeometryHandler.d.ts +76 -0
  76. package/types/entity/Label.d.ts +194 -0
  77. package/types/entity/LabelHandler.d.ts +24 -0
  78. package/types/entity/PointCloud.d.ts +174 -0
  79. package/types/entity/PointCloudHandler.d.ts +38 -0
  80. package/types/entity/Polyline.d.ts +303 -0
  81. package/types/entity/PolylineHandler.d.ts +18 -0
  82. package/types/entity/Ray.d.ts +123 -0
  83. package/types/entity/RayHandler.d.ts +67 -0
  84. package/types/entity/ShapeHandler.d.ts +22 -0
  85. package/types/entity/Strip.d.ts +118 -0
  86. package/types/entity/StripHandler.d.ts +38 -0
  87. package/types/entity/index.d.ts +8 -0
  88. package/types/index.core.d.ts +65 -0
  89. package/types/index.d.ts +45 -0
  90. package/types/index.webgl.d.ts +7 -0
  91. package/types/inherits.d.ts +4 -0
  92. package/types/input/input.d.ts +34 -0
  93. package/types/layer/BaseGeoImage.d.ts +106 -0
  94. package/types/layer/CanvasTiles.d.ts +75 -0
  95. package/types/layer/GeoImage.d.ts +65 -0
  96. package/types/layer/GeoTexture2d.d.ts +8 -0
  97. package/types/layer/GeoVideo.d.ts +80 -0
  98. package/types/layer/KML.d.ts +58 -0
  99. package/types/layer/WMS.d.ts +66 -0
  100. package/types/layer/XYZ.d.ts +126 -0
  101. package/types/layer/index.d.ts +10 -0
  102. package/types/light/LightSource.d.ts +177 -0
  103. package/types/math/Mat3.d.ts +53 -0
  104. package/types/math/Mat4.d.ts +157 -0
  105. package/types/math/Plane.d.ts +17 -0
  106. package/types/math/Vec2.d.ts +308 -0
  107. package/types/math/Vec3.d.ts +459 -0
  108. package/types/math/Vec4.d.ts +161 -0
  109. package/types/math/coder.d.ts +42 -0
  110. package/types/math/index.d.ts +11 -0
  111. package/types/math.d.ts +261 -0
  112. package/types/mercator.d.ts +92 -0
  113. package/types/proj/EPSG3857.d.ts +5 -0
  114. package/types/proj/EPSG4326.d.ts +5 -0
  115. package/types/quadTree/quadTree.d.ts +40 -0
  116. package/types/renderer/RendererEvents.d.ts +230 -0
  117. package/types/res/images.d.ts +3 -0
  118. package/types/scene/Axes.d.ts +11 -0
  119. package/types/scene/BaseNode.d.ts +60 -0
  120. package/types/scene/Planet.d.ts +572 -0
  121. package/types/scene/RenderNode.d.ts +143 -0
  122. package/types/scene/SkyBox.d.ts +10 -0
  123. package/types/scene/index.d.ts +4 -0
  124. package/types/segment/segmentHelper.d.ts +13 -0
  125. package/types/shaders/billboard.d.ts +3 -0
  126. package/types/shaders/depth.d.ts +2 -0
  127. package/types/shaders/drawnode.d.ts +7 -0
  128. package/types/shaders/label.d.ts +4 -0
  129. package/types/shaders/pointCloud.d.ts +2 -0
  130. package/types/shaders/polyline.d.ts +3 -0
  131. package/types/shaders/ray.d.ts +2 -0
  132. package/types/shaders/screenFrame.d.ts +2 -0
  133. package/types/shaders/shape.d.ts +4 -0
  134. package/types/shaders/skybox.d.ts +2 -0
  135. package/types/shaders/toneMapping.d.ts +2 -0
  136. package/types/shapes/BaseShape.d.ts +247 -0
  137. package/types/shapes/Sphere.d.ts +41 -0
  138. package/types/terrain/BilTerrain.d.ts +8 -0
  139. package/types/terrain/EmptyTerrain.d.ts +72 -0
  140. package/types/terrain/Geoid.d.ts +26 -0
  141. package/types/terrain/GlobusTerrain.d.ts +153 -0
  142. package/types/terrain/MapboxTerrain.d.ts +8 -0
  143. package/types/terrain/index.d.ts +5 -0
  144. package/types/utils/FontAtlas.d.ts +14 -0
  145. package/types/utils/GeoImageCreator.d.ts +29 -0
  146. package/types/utils/ImagesCacheManager.d.ts +10 -0
  147. package/types/utils/Loader.d.ts +25 -0
  148. package/types/utils/NormalMapCreator.d.ts +39 -0
  149. package/types/utils/PlainSegmentWorker.d.ts +10 -0
  150. package/types/utils/TerrainWorker.d.ts +9 -0
  151. package/types/utils/TextureAtlas.d.ts +111 -0
  152. package/types/utils/VectorTileCreator.d.ts +16 -0
  153. package/types/utils/colorTable.d.ts +143 -0
  154. package/types/utils/earcut.d.ts +6 -0
  155. package/types/utils/shared.d.ts +230 -0
  156. package/types/webgl/Framebuffer.d.ts +135 -0
  157. package/types/webgl/Handler.d.ts +372 -0
  158. package/types/webgl/Multisample.d.ts +89 -0
  159. package/types/webgl/Program.d.ts +155 -0
  160. package/types/webgl/ProgramController.d.ts +84 -0
  161. package/types/webgl/callbacks.d.ts +1 -0
  162. package/types/webgl/index.d.ts +6 -0
  163. package/types/webgl/types.d.ts +2 -0
@@ -0,0 +1,15 @@
1
+ export class QueueArray {
2
+ constructor(size: any);
3
+ _size: any;
4
+ _array: any[];
5
+ _popIndex: number;
6
+ _shiftIndex: number;
7
+ length: number;
8
+ reset(): void;
9
+ clear(): void;
10
+ push(data: any): void;
11
+ pop(): any;
12
+ unshift(data: any): void;
13
+ shift(): any;
14
+ each(callback: any): void;
15
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * 2D Rectangle class.
3
+ * @class
4
+ * @param {number} [left] - Left coordinate. 0 - default.
5
+ * @param {number} [top] - Top coordinate. 0 - default.
6
+ * @param {number} [right] - Right coordinate. 0 - default.
7
+ * @param {number} [bottom] - Bottom coordinate. 0 - default.
8
+ */
9
+ export class Rectangle {
10
+ constructor(left: any, top: any, right: any, bottom: any);
11
+ /**
12
+ * Left coordinate.
13
+ * @public
14
+ * @type {number}
15
+ */
16
+ public left: number;
17
+ /**
18
+ * Right coordinate.
19
+ * @public
20
+ * @type {number}
21
+ */
22
+ public right: number;
23
+ /**
24
+ * Top coordinate.
25
+ * @public
26
+ * @type {number}
27
+ */
28
+ public top: number;
29
+ /**
30
+ * Top coordinate.
31
+ * @public
32
+ * @type {number}
33
+ */
34
+ public bottom: number;
35
+ /**
36
+ * Clone rectangle object.
37
+ * @public
38
+ * @returns {og.Rectangle}
39
+ */
40
+ public clone(): any;
41
+ /**
42
+ * Returns rectangle width.
43
+ * @public
44
+ * @type {number}
45
+ */
46
+ public getWidth(): number;
47
+ /**
48
+ * Returns rectangle height.
49
+ * @public
50
+ * @type {number}
51
+ */
52
+ public getHeight(): number;
53
+ /**
54
+ * Returns rectangle area.
55
+ * @public
56
+ * @type {number}
57
+ */
58
+ public getSquare(): number;
59
+ /**
60
+ * Returns rectangle diagonal size.
61
+ * @public
62
+ * @type {number}
63
+ */
64
+ public getDiagonal(): number;
65
+ /**
66
+ * Returns true if rectangle fits their size in width and height.
67
+ * @public
68
+ * @param {number} width - Width.
69
+ * @param {number} height - Height.
70
+ * @type {boolean}
71
+ */
72
+ public fit(width: number, height: number): boolean;
73
+ isInside(x: any, y: any): boolean;
74
+ }
@@ -0,0 +1,15 @@
1
+ export class Stack {
2
+ constructor(size?: number);
3
+ _current: Node;
4
+ _head: Node;
5
+ current(): Node;
6
+ push(data: any): void;
7
+ pop(data: any): any;
8
+ popPrev(data: any): any;
9
+ }
10
+ declare class Node {
11
+ next: any;
12
+ prev: any;
13
+ data: any;
14
+ }
15
+ export {};
@@ -0,0 +1,24 @@
1
+ export namespace ajax {
2
+ /**
3
+ * Send an ajax request.
4
+ * @function
5
+ * @param {string} url - Url path.
6
+ * @param {Object} [params] - Ajax parameters:
7
+ * @param {ajax.Method|string} [params.type] - 'POST' or 'GET' ajax method. 'GET' is default.
8
+ * @param {boolean} [params.async] - Asynchronous ajax flag. True is default.
9
+ * @param {Object} [params.data] - Qery data.
10
+ * @param {Object} [params.sender] - Sender object, that success callback binded with. ActiveXObject is default.
11
+ * @param {string} [params.responseType] - Responce data type. Culd be 'text', 'json', 'jsonp', 'html'. 'text' is default.
12
+ * @param {ajax.Xhr~successCallback} [params.success] - The callback that handles the success response.
13
+ * @param {ajax.Xhr~errorCallback} [params.error] - The callback that handles the failed response.
14
+ * @param {ajax.Xhr~abortCallback} [params.abort] - The callback that handles aborted requests.
15
+ * @returns {ajax.Xhr} - Returns object that could be aborted.
16
+ */
17
+ function request(url: string, params?: {
18
+ type?: any;
19
+ async?: boolean;
20
+ data?: any;
21
+ sender?: any;
22
+ responseType?: string;
23
+ }): any;
24
+ }
@@ -0,0 +1,48 @@
1
+ export namespace data {
2
+ const pages: string[];
3
+ const chars: {
4
+ id: number;
5
+ index: number;
6
+ char: string;
7
+ width: number;
8
+ height: number;
9
+ xoffset: number;
10
+ yoffset: number;
11
+ xadvance: number;
12
+ chnl: number;
13
+ x: number;
14
+ y: number;
15
+ page: number;
16
+ }[];
17
+ namespace info {
18
+ const face: string;
19
+ const size: number;
20
+ const bold: number;
21
+ const italic: number;
22
+ const charset: string[];
23
+ const unicode: number;
24
+ const stretchH: number;
25
+ const smooth: number;
26
+ const aa: number;
27
+ const padding: number[];
28
+ const spacing: number[];
29
+ }
30
+ namespace common {
31
+ export const lineHeight: number;
32
+ export const base: number;
33
+ export const scaleW: number;
34
+ export const scaleH: number;
35
+ const pages_1: number;
36
+ export { pages_1 as pages };
37
+ export const packed: number;
38
+ export const alphaChnl: number;
39
+ export const redChnl: number;
40
+ export const greenChnl: number;
41
+ export const blueChnl: number;
42
+ }
43
+ namespace distanceField {
44
+ const fieldType: string;
45
+ const distanceRange: number;
46
+ }
47
+ const kernings: any[];
48
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Converts atomic time to barycentric dynamical time.
3
+ * @param {Number} tai - Atomic time.
4
+ * @returns {Number} - returns barycentric dynamical time.
5
+ */
6
+ export function TAItoTDB(tai: number): number;
7
+ /**
8
+ * Angle between J2000 mean equator and the ecliptic plane.
9
+ * 23 deg 26' 21".448 (Seidelmann, _Explanatory Supplement to the
10
+ * Astronomical Almanac_ (1992), eqn 3.222-1.
11
+ * @const
12
+ * @type{Number}
13
+ */
14
+ export const J2000_OBLIQUITY: number;
15
+ /**
16
+ * IAU 1976 value
17
+ * @const
18
+ * @type{Number}
19
+ */
20
+ export const AU_TO_METERS: number;
21
+ /**
22
+ * Terestrial and atomic time difference.
23
+ * @const
24
+ * @type{Number}
25
+ */
26
+ export const TDT_TAI: number;
27
+ /**
28
+ * Earth gravitational parameter product of gravitational constant G and the mass M of the Earth.
29
+ * @const
30
+ * @type{Number}
31
+ */
32
+ export const EARTH_GRAVITATIONAL_PARAMETER: number;
33
+ /**
34
+ * Sun gravitational parameter product of gravitational constant G and the mass M of the Sun.
35
+ * @const
36
+ * @type{Number}
37
+ */
38
+ export const SUN_GRAVITATIONAL_PARAMETER: number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns Sun position in the geocentric coordinate system by the time.
3
+ * @param {Number} jDate - Julian date time.
4
+ * @returns {og.Vec3} - Sun geocentric coordinates.
5
+ */
6
+ export function getSunPosition(jDate: number): any;
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Returns julian days from Epoch.
3
+ * @param {number} jd - Julian date.
4
+ * @returns {number} Days from epoch
5
+ */
6
+ export function T(jd: number): number;
7
+ /**
8
+ * Gets the date's julian day.
9
+ * @param {number} year - Year.
10
+ * @param {number} month - Month.
11
+ * @param {number} day - Day.
12
+ * @returns {Number} Day number
13
+ */
14
+ export function getDayNumber(year: number, month: number, day: number): number;
15
+ /**
16
+ * Converts javascript date to the universal(UTC) julian date.
17
+ * @param {Date} date - Date.
18
+ * @returns {number} UTC julian date
19
+ */
20
+ export function DateToUTC(date: Date): number;
21
+ /**
22
+ * Converts javascript date to the atomic(TAI) julian date.
23
+ * @param {Date} date - Date.
24
+ * @returns {number} TAI julian date
25
+ */
26
+ export function DateToTAI(date: Date): number;
27
+ /**
28
+ * Converts coordinated universal(UTC) julian date to atomic(TAI) julian date.
29
+ * @param {number} jd - UTC julian date.
30
+ * @returns {number} TAI julian date
31
+ */
32
+ export function UTCtoTAI(jd: number): number;
33
+ /**
34
+ * Converts atomic julian date(TAI) to the coordinated universal(UTC) julian date.
35
+ * @param {number} tai - TAI julian date.
36
+ * @returns {number} UTC julian date
37
+ */
38
+ export function TAItoUTC(tai: number): number;
39
+ /**
40
+ * Converts UTC julian date to the javascript date object.
41
+ * @param {number} utc - UTC julian date.
42
+ * @returns {Date} JavaScript Date object
43
+ */
44
+ export function UTCtoDate(utc: number): Date;
45
+ /**
46
+ * Converts TAI julian date to the javascript date object.
47
+ * @param {number} tai - TAI julian date.
48
+ * @returns {Date} JavaScript Date object
49
+ */
50
+ export function TAItoDate(tai: number): Date;
51
+ /**
52
+ * Adds milliseconds to the julian date.
53
+ * @param {number} jd - Julian date.
54
+ * @param {number} milliseconds - Milliseconds to add.
55
+ * @returns {number} Julian date
56
+ */
57
+ export function addMilliseconds(jd: number, milliseconds: number): number;
58
+ /**
59
+ * Adds seconds to the julian date.
60
+ * @param {number} jd - Julian date.
61
+ * @param {number} seconds - Seconds to add.
62
+ * @returns {number} Julian date
63
+ */
64
+ export function addSeconds(jd: number, seconds: number): number;
65
+ /**
66
+ * Adds hours to the julian date.
67
+ * @param {number} jd - Julian date.
68
+ * @param {number} hours - Hours to add.
69
+ * @returns {number} Julian date
70
+ */
71
+ export function addHours(jd: number, hours: number): number;
72
+ /**
73
+ * Adds minutes to the julian date.
74
+ * @param {number} jd - Julian date.
75
+ * @param {number} minutes - Minutes to add.
76
+ * @returns {number} Julian date
77
+ */
78
+ export function addMinutes(jd: number, minutes: number): number;
79
+ /**
80
+ * Adds days to the julian date.
81
+ * @param {number} jd - Julian date.
82
+ * @param {number} days - Days to add.
83
+ * @returns {number} Julian date
84
+ */
85
+ export function addDays(jd: number, days: number): number;
86
+ /**
87
+ * Gets milliseconds of a julian date.
88
+ * @param {number} js - julian date.
89
+ * @returns {number} Milliseconds
90
+ */
91
+ export function getMilliseconds(jd: any): number;
92
+ /**
93
+ * Gets seconds of a julian date.
94
+ * @param {number} js - julian date.
95
+ * @returns {number} Seconds
96
+ */
97
+ export function getSeconds(jd: any): number;
98
+ /**
99
+ * Gets hours of a julian date.
100
+ * @param {number} js - julian date.
101
+ * @returns {number} Hours
102
+ */
103
+ export function getHours(jd: any): number;
104
+ /**
105
+ * Gets minutes of a julian date.
106
+ * @param {number} js - julian date.
107
+ * @returns {number} Minutes
108
+ */
109
+ export function getMinutes(jd: any): number;
110
+ /**
111
+ * Gets days of a julian date.
112
+ * @param {number} js - julian date.
113
+ * @returns {number} Days
114
+ */
115
+ export function getDays(jd: any): number;
116
+ /**
117
+ * Returns days in seconds.
118
+ * @param {number} s - Seconds.
119
+ * @returns {number} Days
120
+ */
121
+ export function secondsToDays(s: number): number;
122
+ /**
123
+ * Returns seconds in days.
124
+ * @param {number} d - Days.
125
+ * @returns {number} Seconds
126
+ */
127
+ export function daysToSeconds(d: number): number;
128
+ /**
129
+ * Seconds in millisecond.
130
+ * @const
131
+ * @default
132
+ */
133
+ export const SECONDS_PER_MILLISECOND: 0.001;
134
+ /**
135
+ * Milliseconds in second.
136
+ * @const
137
+ * @default
138
+ */
139
+ export const MILLISECONDS_PER_SECOND: 1000;
140
+ /**
141
+ * Seconds in minute.
142
+ * @const
143
+ * @default
144
+ */
145
+ export const SECONDS_PER_MINUTE: 60;
146
+ /**
147
+ * One by seconds in minute.
148
+ * @const
149
+ * @default
150
+ */
151
+ export const ONE_BY_SECONDS_PER_MINUTE: number;
152
+ /**
153
+ * Minutes in hour.
154
+ * @const
155
+ * @default
156
+ */
157
+ export const MINUTES_PER_HOUR: 60;
158
+ /**
159
+ * Hours in day.
160
+ * @const
161
+ * @default
162
+ */
163
+ export const HOURS_PER_DAY: 24;
164
+ /**
165
+ * One by hours in day.
166
+ * @const
167
+ * @default
168
+ */
169
+ export const ONE_BY_HOURS_PER_DAY: number;
170
+ /**
171
+ * Seconds in hour.
172
+ * @const
173
+ * @default
174
+ */
175
+ export const SECONDS_PER_HOUR: 3600;
176
+ /**
177
+ * One by seconds in hour.
178
+ * @const
179
+ * @default
180
+ */
181
+ export const ONE_BY_SECONDS_PER_HOUR: number;
182
+ /**
183
+ * Seconds in 12 hours.
184
+ * @const
185
+ * @default
186
+ */
187
+ export const SECONDS_PER_12_HOURS: number;
188
+ /**
189
+ * Minutes in day.
190
+ * @const
191
+ * @default
192
+ */
193
+ export const MINUTES_PER_DAY: 1440;
194
+ /**
195
+ * One by minutes in day.
196
+ * @const
197
+ * @default
198
+ */
199
+ export const ONE_BY_MINUTES_PER_DAY: number;
200
+ /**
201
+ * Seconds in day.
202
+ * @const
203
+ * @default
204
+ */
205
+ export const SECONDS_PER_DAY: 86400;
206
+ /**
207
+ * Milliseconds in day.
208
+ * @const
209
+ * @default
210
+ */
211
+ export const MILLISECONDS_PER_DAY: 86400000;
212
+ /**
213
+ * One by milliseconds in day.
214
+ * @const
215
+ * @default
216
+ */
217
+ export const ONE_BY_MILLISECONDS_PER_DAY: number;
218
+ /**
219
+ * One by seconds in day.
220
+ * @const
221
+ * @default
222
+ */
223
+ export const ONE_BY_SECONDS_PER_DAY: number;
224
+ /**
225
+ * Days in julian century.
226
+ * @const
227
+ * @default
228
+ */
229
+ export const DAYS_PER_JULIAN_CENTURY: 36525;
230
+ /**
231
+ * Days in julian year.
232
+ * @const
233
+ * @default
234
+ */
235
+ export const DAYS_PER_JULIAN_YEAR: 365.25;
236
+ /**
237
+ * Seconds in picosecond.
238
+ * @const
239
+ * @default
240
+ */
241
+ export const PICOSECOND: 1e-9;
242
+ /**
243
+ * Modified julian date difference.
244
+ * @const
245
+ * @default
246
+ */
247
+ export const MODIFIED_JULIAN_DATE_DIFFERENCE: 2400000.5;
248
+ /**
249
+ * Julian date of 2000 year. Epoch.
250
+ * @const
251
+ * @default
252
+ */
253
+ export const J2000: 2451545;
254
+ export const J2000TAI: number;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Bounding box class.
3
+ * @class
4
+ */
5
+ export class Box {
6
+ constructor(boundsArr: any);
7
+ /**
8
+ * Vertices array.
9
+ * @public
10
+ * @type{Array.<og.Vec3>}
11
+ */
12
+ public vertices: Array<any>;
13
+ copy(bbox: any): void;
14
+ /**
15
+ * Sets bounding box coordinates by the bounds array.
16
+ * @param {Array.<number>} bounds - Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]
17
+ */
18
+ setFromBoundsArr(bounds: Array<number>): void;
19
+ /**
20
+ * Sets bounding box coordiantes by ellipsoid geodetic extend.
21
+ * @param {og.Ellipsoid} ellipsoid - Ellipsoid.
22
+ * @param {og.Extent} extent - Geodetic extent.
23
+ */
24
+ setFromExtent(ellipsoid: any, extent: any): void;
25
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Bounding sphere class.
3
+ * @class
4
+ * @param {Number} [radius] - Bounding sphere radius.
5
+ * @param {og.Vec3} [center] - Bounding sphere coordiantes.
6
+ */
7
+ export class Sphere {
8
+ constructor(radius: any, center: any);
9
+ /**
10
+ * Sphere radius.
11
+ * @public
12
+ * @type {Number}
13
+ */
14
+ public radius: number;
15
+ /**
16
+ * Sphere coordiantes.
17
+ * @public
18
+ * @type {og.Vec3}
19
+ */
20
+ public center: any;
21
+ /**
22
+ * Sets bounding sphere coordinates by the bounds array.
23
+ * @param {Array.<number>} bounds - Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]
24
+ */
25
+ setFromBounds(bounds: Array<number>): void;
26
+ /**
27
+ * Sets bounding sphere coordiantes by ellipsoid geodetic extend.
28
+ * @param {og.Ellipsoid} ellipsoid - Ellipsoid.
29
+ * @param {og.Extent} extent - Geodetic extent.
30
+ */
31
+ setFromExtent(ellipsoid: any, extent: any): void;
32
+ }
@@ -0,0 +1,3 @@
1
+ import { Box } from "./Box";
2
+ import { Sphere } from "./Sphere";
3
+ export { Box, Sphere };