@math.gl/geospatial 3.6.0-alpha.8 → 3.6.2

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "3.6.0-alpha.8",
8
+ "version": "3.6.2",
9
9
  "keywords": [
10
10
  "webgl",
11
11
  "javascript",
@@ -32,8 +32,8 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.12.0",
35
- "@math.gl/core": "3.6.0-alpha.8",
35
+ "@math.gl/core": "3.6.2",
36
36
  "gl-matrix": "^3.4.0"
37
37
  },
38
- "gitHead": "5354df2f3c4111d4e48f4a0508d8e8103dd5eaf4"
38
+ "gitHead": "517015873bbd7143bfc4bb761e70071c7a86771b"
39
39
  }
package/dist/constants.js DELETED
@@ -1,22 +0,0 @@
1
- // This file is derived from the Cesium math library under Apache 2 license
2
- // See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
3
- export const WGS84_RADIUS_X = 6378137.0;
4
- export const WGS84_RADIUS_Y = 6378137.0;
5
- export const WGS84_RADIUS_Z = 6356752.3142451793;
6
- // Pre-calculated ellipsoid defaults to avoid utils depending on `ellipsoid.js`
7
- export const WGS84_CONSTANTS = {
8
- radii: [WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z],
9
- radiiSquared: [
10
- WGS84_RADIUS_X * WGS84_RADIUS_X,
11
- WGS84_RADIUS_Y * WGS84_RADIUS_Y,
12
- WGS84_RADIUS_Z * WGS84_RADIUS_Z
13
- ],
14
- oneOverRadii: [1.0 / WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z],
15
- oneOverRadiiSquared: [
16
- 1.0 / (WGS84_RADIUS_X * WGS84_RADIUS_X),
17
- 1.0 / (WGS84_RADIUS_Y * WGS84_RADIUS_Y),
18
- 1.0 / (WGS84_RADIUS_Z * WGS84_RADIUS_Z)
19
- ],
20
- maximumRadius: Math.max(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z),
21
- centerToleranceSquared: 1e-1 // EPSILON1;
22
- };
@@ -1,142 +0,0 @@
1
- // This file is derived from the Cesium math library under Apache 2 license
2
- // See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
3
- /* eslint-disable */
4
- import { Vector3, Matrix4, assert, equals, _MathUtils } from '@math.gl/core';
5
- import * as vec3 from 'gl-matrix/vec3';
6
- import { WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z } from '../constants';
7
- import { fromCartographicToRadians, toCartographicFromRadians } from '../type-utils';
8
- import scaleToGeodeticSurface from './helpers/scale-to-geodetic-surface';
9
- import localFrameToFixedFrame from './helpers/ellipsoid-transform';
10
- const scratchVector = new Vector3();
11
- const scratchNormal = new Vector3();
12
- const scratchK = new Vector3();
13
- const scratchPosition = new Vector3();
14
- const scratchHeight = new Vector3();
15
- const scratchCartesian = new Vector3();
16
- let wgs84;
17
- /**
18
- * A quadratic surface defined in Cartesian coordinates by the equation
19
- * `(x / a)^2 + (y / b)^2 + (z / c)^2 = 1`. Primarily used
20
- * to represent the shape of planetary bodies.
21
- */
22
- export default class Ellipsoid {
23
- constructor(x = 0.0, y = 0.0, z = 0.0) {
24
- this.centerToleranceSquared = _MathUtils.EPSILON1;
25
- assert(x >= 0.0);
26
- assert(y >= 0.0);
27
- assert(z >= 0.0);
28
- this.radii = new Vector3(x, y, z);
29
- this.radiiSquared = new Vector3(x * x, y * y, z * z);
30
- this.radiiToTheFourth = new Vector3(x * x * x * x, y * y * y * y, z * z * z * z);
31
- this.oneOverRadii = new Vector3(x === 0.0 ? 0.0 : 1.0 / x, y === 0.0 ? 0.0 : 1.0 / y, z === 0.0 ? 0.0 : 1.0 / z);
32
- this.oneOverRadiiSquared = new Vector3(x === 0.0 ? 0.0 : 1.0 / (x * x), y === 0.0 ? 0.0 : 1.0 / (y * y), z === 0.0 ? 0.0 : 1.0 / (z * z));
33
- this.minimumRadius = Math.min(x, y, z);
34
- this.maximumRadius = Math.max(x, y, z);
35
- if (this.radiiSquared.z !== 0) {
36
- this.squaredXOverSquaredZ = this.radiiSquared.x / this.radiiSquared.z;
37
- }
38
- Object.freeze(this);
39
- }
40
- /** Compares this Ellipsoid against the provided Ellipsoid componentwise */
41
- equals(right) {
42
- return this === right || Boolean(right && this.radii.equals(right.radii));
43
- }
44
- /** Creates a string representing this Ellipsoid in the format '(radii.x, radii.y, radii.z)'. */
45
- toString() {
46
- return this.radii.toString();
47
- }
48
- cartographicToCartesian(cartographic, result = [0, 0, 0]) {
49
- const normal = scratchNormal;
50
- const k = scratchK;
51
- const [, , height] = cartographic;
52
- this.geodeticSurfaceNormalCartographic(cartographic, normal);
53
- k.copy(this.radiiSquared).scale(normal);
54
- const gamma = Math.sqrt(normal.dot(k));
55
- k.scale(1 / gamma);
56
- normal.scale(height);
57
- k.add(normal);
58
- return k.to(result);
59
- }
60
- cartesianToCartographic(cartesian, result = [0, 0, 0]) {
61
- scratchCartesian.from(cartesian);
62
- const point = this.scaleToGeodeticSurface(scratchCartesian, scratchPosition);
63
- if (!point) {
64
- return undefined;
65
- }
66
- const normal = this.geodeticSurfaceNormal(point, scratchNormal);
67
- const h = scratchHeight;
68
- h.copy(scratchCartesian).subtract(point);
69
- const longitude = Math.atan2(normal.y, normal.x);
70
- const latitude = Math.asin(normal.z);
71
- const height = Math.sign(vec3.dot(h, scratchCartesian)) * vec3.length(h);
72
- return toCartographicFromRadians([longitude, latitude, height], result);
73
- }
74
- eastNorthUpToFixedFrame(origin, result = new Matrix4()) {
75
- return localFrameToFixedFrame(this, 'east', 'north', 'up', origin, result);
76
- }
77
- // Computes a 4x4 transformation matrix from a reference frame centered at
78
- // the provided origin to the ellipsoid's fixed reference frame.
79
- localFrameToFixedFrame(firstAxis, secondAxis, thirdAxis, origin, result = new Matrix4()) {
80
- return localFrameToFixedFrame(this, firstAxis, secondAxis, thirdAxis, origin, result);
81
- }
82
- geocentricSurfaceNormal(cartesian, result = [0, 0, 0]) {
83
- return scratchVector.from(cartesian).normalize().to(result);
84
- }
85
- geodeticSurfaceNormalCartographic(cartographic, result = [0, 0, 0]) {
86
- const cartographicVectorRadians = fromCartographicToRadians(cartographic);
87
- const longitude = cartographicVectorRadians[0];
88
- const latitude = cartographicVectorRadians[1];
89
- const cosLatitude = Math.cos(latitude);
90
- scratchVector
91
- .set(cosLatitude * Math.cos(longitude), cosLatitude * Math.sin(longitude), Math.sin(latitude))
92
- .normalize();
93
- return scratchVector.to(result);
94
- }
95
- geodeticSurfaceNormal(cartesian, result = [0, 0, 0]) {
96
- return scratchVector.from(cartesian).scale(this.oneOverRadiiSquared).normalize().to(result);
97
- }
98
- /** Scales the provided Cartesian position along the geodetic surface normal
99
- * so that it is on the surface of this ellipsoid. If the position is
100
- * at the center of the ellipsoid, this function returns undefined. */
101
- scaleToGeodeticSurface(cartesian, result) {
102
- return scaleToGeodeticSurface(cartesian, this, result);
103
- }
104
- /** Scales the provided Cartesian position along the geocentric surface normal
105
- * so that it is on the surface of this ellipsoid. */
106
- scaleToGeocentricSurface(cartesian, result = [0, 0, 0]) {
107
- scratchPosition.from(cartesian);
108
- const positionX = scratchPosition.x;
109
- const positionY = scratchPosition.y;
110
- const positionZ = scratchPosition.z;
111
- const oneOverRadiiSquared = this.oneOverRadiiSquared;
112
- const beta = 1.0 /
113
- Math.sqrt(positionX * positionX * oneOverRadiiSquared.x +
114
- positionY * positionY * oneOverRadiiSquared.y +
115
- positionZ * positionZ * oneOverRadiiSquared.z);
116
- return scratchPosition.multiplyScalar(beta).to(result);
117
- }
118
- /** Transforms a Cartesian X, Y, Z position to the ellipsoid-scaled space by multiplying
119
- * its components by the result of `Ellipsoid#oneOverRadii` */
120
- transformPositionToScaledSpace(position, result = [0, 0, 0]) {
121
- return scratchPosition.from(position).scale(this.oneOverRadii).to(result);
122
- }
123
- /** Transforms a Cartesian X, Y, Z position from the ellipsoid-scaled space by multiplying
124
- * its components by the result of `Ellipsoid#radii`. */
125
- transformPositionFromScaledSpace(position, result = [0, 0, 0]) {
126
- return scratchPosition.from(position).scale(this.radii).to(result);
127
- }
128
- /** Computes a point which is the intersection of the surface normal with the z-axis. */
129
- getSurfaceNormalIntersectionWithZAxis(position, buffer = 0, result = [0, 0, 0]) {
130
- // Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)
131
- assert(equals(this.radii.x, this.radii.y, _MathUtils.EPSILON15));
132
- assert(this.radii.z > 0);
133
- scratchPosition.from(position);
134
- const z = scratchPosition.z * (1 - this.squaredXOverSquaredZ);
135
- if (Math.abs(z) >= this.radii.z - buffer) {
136
- return undefined;
137
- }
138
- return scratchPosition.set(0.0, 0.0, z).to(result);
139
- }
140
- }
141
- /** An Ellipsoid instance initialized to the WGS84 standard. */
142
- Ellipsoid.WGS84 = new Ellipsoid(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z);
@@ -1,125 +0,0 @@
1
- import { Vector3, assert, equals as equalsEpsilon } from '@math.gl/core';
2
- const EPSILON14 = 1e-14;
3
- const scratchOrigin = new Vector3();
4
- // Caclulate third axis from given two axii
5
- const VECTOR_PRODUCT_LOCAL_FRAME = {
6
- up: {
7
- south: 'east',
8
- north: 'west',
9
- west: 'south',
10
- east: 'north'
11
- },
12
- down: {
13
- south: 'west',
14
- north: 'east',
15
- west: 'north',
16
- east: 'south'
17
- },
18
- south: {
19
- up: 'west',
20
- down: 'east',
21
- west: 'down',
22
- east: 'up'
23
- },
24
- north: {
25
- up: 'east',
26
- down: 'west',
27
- west: 'up',
28
- east: 'down'
29
- },
30
- west: {
31
- up: 'north',
32
- down: 'south',
33
- north: 'down',
34
- south: 'up'
35
- },
36
- east: {
37
- up: 'south',
38
- down: 'north',
39
- north: 'up',
40
- south: 'down'
41
- }
42
- };
43
- const degeneratePositionLocalFrame = {
44
- north: [-1, 0, 0],
45
- east: [0, 1, 0],
46
- up: [0, 0, 1],
47
- south: [1, 0, 0],
48
- west: [0, -1, 0],
49
- down: [0, 0, -1]
50
- };
51
- const scratchAxisVectors = {
52
- east: new Vector3(),
53
- north: new Vector3(),
54
- up: new Vector3(),
55
- west: new Vector3(),
56
- south: new Vector3(),
57
- down: new Vector3()
58
- };
59
- const scratchVector1 = new Vector3();
60
- const scratchVector2 = new Vector3();
61
- const scratchVector3 = new Vector3();
62
- // Computes a 4x4 transformation matrix from a reference frame
63
- // centered at the provided origin to the provided ellipsoid's fixed reference frame.
64
- // eslint-disable-next-line max-statements, max-params, complexity
65
- export default function localFrameToFixedFrame(ellipsoid, firstAxis, secondAxis, thirdAxis, cartesianOrigin, result) {
66
- const thirdAxisInferred = VECTOR_PRODUCT_LOCAL_FRAME[firstAxis] &&
67
- VECTOR_PRODUCT_LOCAL_FRAME[firstAxis][secondAxis];
68
- // firstAxis and secondAxis must be east, north, up, west, south or down.');
69
- assert(thirdAxisInferred && (!thirdAxis || thirdAxis === thirdAxisInferred));
70
- let firstAxisVector;
71
- let secondAxisVector;
72
- let thirdAxisVector;
73
- const origin = scratchOrigin.copy(cartesianOrigin);
74
- // If x and y are zero, assume origin is at a pole, which is a special case.
75
- const atPole = equalsEpsilon(origin.x, 0.0, EPSILON14) && equalsEpsilon(origin.y, 0.0, EPSILON14);
76
- if (atPole) {
77
- // Look up axis value and adjust
78
- const sign = Math.sign(origin.z);
79
- firstAxisVector = scratchVector1.fromArray(degeneratePositionLocalFrame[firstAxis]);
80
- if (firstAxis !== 'east' && firstAxis !== 'west') {
81
- firstAxisVector.scale(sign);
82
- }
83
- secondAxisVector = scratchVector2.fromArray(degeneratePositionLocalFrame[secondAxis]);
84
- if (secondAxis !== 'east' && secondAxis !== 'west') {
85
- secondAxisVector.scale(sign);
86
- }
87
- thirdAxisVector = scratchVector3.fromArray(degeneratePositionLocalFrame[thirdAxis]);
88
- if (thirdAxis !== 'east' && thirdAxis !== 'west') {
89
- thirdAxisVector.scale(sign);
90
- }
91
- }
92
- else {
93
- // Calculate all axis
94
- const { up, east, north } = scratchAxisVectors;
95
- east.set(-origin.y, origin.x, 0.0).normalize();
96
- ellipsoid.geodeticSurfaceNormal(origin, up);
97
- north.copy(up).cross(east);
98
- const { down, west, south } = scratchAxisVectors;
99
- down.copy(up).scale(-1);
100
- west.copy(east).scale(-1);
101
- south.copy(north).scale(-1);
102
- // Pick three axis based on desired orientation
103
- firstAxisVector = scratchAxisVectors[firstAxis];
104
- secondAxisVector = scratchAxisVectors[secondAxis];
105
- thirdAxisVector = scratchAxisVectors[thirdAxis];
106
- }
107
- // TODO - assuming the result is column-major
108
- result[0] = firstAxisVector.x;
109
- result[1] = firstAxisVector.y;
110
- result[2] = firstAxisVector.z;
111
- result[3] = 0.0;
112
- result[4] = secondAxisVector.x;
113
- result[5] = secondAxisVector.y;
114
- result[6] = secondAxisVector.z;
115
- result[7] = 0.0;
116
- result[8] = thirdAxisVector.x;
117
- result[9] = thirdAxisVector.y;
118
- result[10] = thirdAxisVector.z;
119
- result[11] = 0.0;
120
- result[12] = origin.x;
121
- result[13] = origin.y;
122
- result[14] = origin.z;
123
- result[15] = 1.0;
124
- return result;
125
- }
@@ -1,70 +0,0 @@
1
- /* eslint-disable */
2
- import { Vector3, _MathUtils } from '@math.gl/core';
3
- const scratchVector = new Vector3();
4
- const scaleToGeodeticSurfaceIntersection = new Vector3();
5
- const scaleToGeodeticSurfaceGradient = new Vector3();
6
- // Scales the provided Cartesian position along the geodetic surface normal
7
- // so that it is on the surface of this ellipsoid. If the position is
8
- // at the center of the ellipsoid, this function returns undefined.
9
- export default function scaleToGeodeticSurface(cartesian, ellipsoid, result = []) {
10
- const { oneOverRadii, oneOverRadiiSquared, centerToleranceSquared } = ellipsoid;
11
- scratchVector.from(cartesian);
12
- const positionX = scratchVector.x;
13
- const positionY = scratchVector.y;
14
- const positionZ = scratchVector.z;
15
- const oneOverRadiiX = oneOverRadii.x;
16
- const oneOverRadiiY = oneOverRadii.y;
17
- const oneOverRadiiZ = oneOverRadii.z;
18
- const x2 = positionX * positionX * oneOverRadiiX * oneOverRadiiX;
19
- const y2 = positionY * positionY * oneOverRadiiY * oneOverRadiiY;
20
- const z2 = positionZ * positionZ * oneOverRadiiZ * oneOverRadiiZ;
21
- // Compute the squared ellipsoid norm.
22
- const squaredNorm = x2 + y2 + z2;
23
- const ratio = Math.sqrt(1.0 / squaredNorm);
24
- // When very close to center or at center
25
- if (!Number.isFinite(ratio)) {
26
- return undefined;
27
- }
28
- // As an initial approximation, assume that the radial intersection is the projection point.
29
- const intersection = scaleToGeodeticSurfaceIntersection;
30
- intersection.copy(cartesian).scale(ratio);
31
- // If the position is near the center, the iteration will not converge.
32
- if (squaredNorm < centerToleranceSquared) {
33
- return intersection.to(result);
34
- }
35
- const oneOverRadiiSquaredX = oneOverRadiiSquared.x;
36
- const oneOverRadiiSquaredY = oneOverRadiiSquared.y;
37
- const oneOverRadiiSquaredZ = oneOverRadiiSquared.z;
38
- // Use the gradient at the intersection point in place of the true unit normal.
39
- // The difference in magnitude will be absorbed in the multiplier.
40
- const gradient = scaleToGeodeticSurfaceGradient;
41
- gradient.set(intersection.x * oneOverRadiiSquaredX * 2.0, intersection.y * oneOverRadiiSquaredY * 2.0, intersection.z * oneOverRadiiSquaredZ * 2.0);
42
- // Compute the initial guess at the normal vector multiplier, lambda.
43
- let lambda = ((1.0 - ratio) * scratchVector.len()) / (0.5 * gradient.len());
44
- let correction = 0.0;
45
- let xMultiplier;
46
- let yMultiplier;
47
- let zMultiplier;
48
- let func;
49
- do {
50
- lambda -= correction;
51
- xMultiplier = 1.0 / (1.0 + lambda * oneOverRadiiSquaredX);
52
- yMultiplier = 1.0 / (1.0 + lambda * oneOverRadiiSquaredY);
53
- zMultiplier = 1.0 / (1.0 + lambda * oneOverRadiiSquaredZ);
54
- const xMultiplier2 = xMultiplier * xMultiplier;
55
- const yMultiplier2 = yMultiplier * yMultiplier;
56
- const zMultiplier2 = zMultiplier * zMultiplier;
57
- const xMultiplier3 = xMultiplier2 * xMultiplier;
58
- const yMultiplier3 = yMultiplier2 * yMultiplier;
59
- const zMultiplier3 = zMultiplier2 * zMultiplier;
60
- func = x2 * xMultiplier2 + y2 * yMultiplier2 + z2 * zMultiplier2 - 1.0;
61
- // "denominator" here refers to the use of this expression in the velocity and acceleration
62
- // computations in the sections to follow.
63
- const denominator = x2 * xMultiplier3 * oneOverRadiiSquaredX +
64
- y2 * yMultiplier3 * oneOverRadiiSquaredY +
65
- z2 * zMultiplier3 * oneOverRadiiSquaredZ;
66
- const derivative = -2.0 * denominator;
67
- correction = func / derivative;
68
- } while (Math.abs(func) > _MathUtils.EPSILON12);
69
- return scratchVector.scale([xMultiplier, yMultiplier, zMultiplier]).to(result);
70
- }
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { default as Ellipsoid } from './ellipsoid/ellipsoid';
2
- export { isWGS84 } from './type-utils';
@@ -1,96 +0,0 @@
1
- // This file is derived from the Cesium math library under Apache 2 license
2
- // See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md
3
- import { Vector3, toRadians, toDegrees, config } from '@math.gl/core';
4
- import { WGS84_CONSTANTS } from './constants';
5
- function identity(x) {
6
- return x;
7
- }
8
- const scratchVector = new Vector3();
9
- export function fromCartographic(cartographic, result = [], map = identity) {
10
- if ('longitude' in cartographic) {
11
- result[0] = map(cartographic.longitude);
12
- result[1] = map(cartographic.latitude);
13
- result[2] = cartographic.height;
14
- }
15
- else if ('x' in cartographic) {
16
- result[0] = map(cartographic.x);
17
- result[1] = map(cartographic.y);
18
- result[2] = cartographic.z;
19
- }
20
- else {
21
- result[0] = map(cartographic[0]);
22
- result[1] = map(cartographic[1]);
23
- result[2] = cartographic[2];
24
- }
25
- return result;
26
- }
27
- export function fromCartographicToRadians(cartographic, vector = []) {
28
- return fromCartographic(cartographic, vector, config._cartographicRadians ? identity : toRadians);
29
- }
30
- export function fromCartographicToDegrees(cartographic, vector = []) {
31
- return fromCartographic(cartographic, vector, config._cartographicRadians ? toDegrees : identity);
32
- }
33
- export function toCartographic(vector, cartographic, map = identity) {
34
- if ('longitude' in cartographic) {
35
- cartographic.longitude = map(vector[0]);
36
- cartographic.latitude = map(vector[1]);
37
- cartographic.height = vector[2];
38
- }
39
- else if ('x' in cartographic) {
40
- cartographic.x = map(vector[0]);
41
- cartographic.y = map(vector[1]);
42
- cartographic.z = vector[2];
43
- }
44
- else {
45
- cartographic[0] = map(vector[0]);
46
- cartographic[1] = map(vector[1]);
47
- cartographic[2] = vector[2];
48
- }
49
- return cartographic;
50
- }
51
- export function toCartographicFromRadians(vector, cartographic) {
52
- return toCartographic(vector, cartographic, config._cartographicRadians ? identity : toDegrees);
53
- }
54
- export function toCartographicFromDegrees(vector, cartographic) {
55
- return toCartographic(vector, cartographic, config._cartographicRadians ? toRadians : identity);
56
- }
57
- // Estimates if a vector is close to the surface of the WGS84 Ellipsoid
58
- export function isWGS84(vector) {
59
- if (!vector) {
60
- return false;
61
- }
62
- scratchVector.from(vector);
63
- const { oneOverRadiiSquared, centerToleranceSquared } = WGS84_CONSTANTS;
64
- const x2 = vector[0] * vector[0] * oneOverRadiiSquared[0];
65
- const y2 = vector[1] * vector[1] * oneOverRadiiSquared[1];
66
- const z2 = vector[2] * vector[2] * oneOverRadiiSquared[2];
67
- return Math.abs(x2 + y2 + z2 - 1) < centerToleranceSquared;
68
- }
69
- /*
70
-
71
- export function fromCartographic(cartographic: Cartographic, result?: number[]): number[];
72
- export function fromCartographic(cartographic: Cartographic, result: TypedArray): TypedArray;
73
- export function fromCartographicToRadians(cartographic: Cartographic, result?: number[]): number[];
74
- export function fromCartographicToRadians(
75
- cartographic: Cartographic,
76
- result: TypedArray
77
- ): TypedArray;
78
- export function fromCartographicToDegrees(cartographic: Cartographic, result?: number[]): number[];
79
- export function fromCartographicToDegrees(
80
- cartographic: Cartographic,
81
- result: TypedArray
82
- ): TypedArray;
83
-
84
- export function toCartographic(vector: number[] | TypedArray, result: Cartographic): number[];
85
- export function toCartographicFromRadians(
86
- vector: number[] | TypedArray,
87
- result: Cartographic
88
- ): number[];
89
- export function toCartographicFromDegrees(
90
- vector: number[] | TypedArray,
91
- result: Cartographic
92
- ): number[];
93
-
94
- // Estimates if a vector is close to the surface of the WGS84 Ellipsoid
95
- export function isWGS84(vector: number[] | TypedArray): boolean;
96
- */