Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@math.gl/geospatial

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@math.gl/geospatial - npm Package Compare versions

Comparing version 3.0.0-alpha.5 to 3.0.0-alpha.6

2

dist/es5/constants.js

@@ -17,3 +17,3 @@ "use strict";

oneOverRadii: [1.0 / WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / WGS84_RADIUS_X * WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y * WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z * WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / (WGS84_RADIUS_X * WGS84_RADIUS_X), 1.0 / (WGS84_RADIUS_Y * WGS84_RADIUS_Y), 1.0 / (WGS84_RADIUS_Z * WGS84_RADIUS_Z)],
maximumRadius: Math.max(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z),

@@ -20,0 +20,0 @@ centerToleranceSquared: 1e-1

@@ -14,4 +14,12 @@ "use strict";

});
Object.defineProperty(exports, "isWGS84", {
enumerable: true,
get: function get() {
return _typeUtils.isWGS84;
}
});
var _ellipsoid = _interopRequireDefault(require("./ellipsoid/ellipsoid"));
var _typeUtils = require("./type-utils");
//# sourceMappingURL=index.js.map

@@ -12,5 +12,8 @@ "use strict";

exports.toCartographicFromDegrees = toCartographicFromDegrees;
exports.isWGS84 = isWGS84;
var _math = require("math.gl");
var _constants = require("./constants");
var noop = function noop(x) {

@@ -79,2 +82,16 @@ return x;

}
function isWGS84(vector) {
if (!vector) {
return false;
}
scratchVector.from(vector);
var oneOverRadiiSquared = _constants.WGS84_CONSTANTS.oneOverRadiiSquared,
centerToleranceSquared = _constants.WGS84_CONSTANTS.centerToleranceSquared;
var x2 = vector[0] * vector[0] * oneOverRadiiSquared[0];
var y2 = vector[1] * vector[1] * oneOverRadiiSquared[1];
var z2 = vector[2] * vector[2] * oneOverRadiiSquared[2];
return Math.abs(x2 + y2 + z2 - 1) < centerToleranceSquared;
}
//# sourceMappingURL=type-utils.js.map

@@ -8,3 +8,3 @@ export const WGS84_RADIUS_X = 6378137.0;

oneOverRadii: [1.0 / WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / WGS84_RADIUS_X * WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y * WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z * WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / (WGS84_RADIUS_X * WGS84_RADIUS_X), 1.0 / (WGS84_RADIUS_Y * WGS84_RADIUS_Y), 1.0 / (WGS84_RADIUS_Z * WGS84_RADIUS_Z)],
maximumRadius: Math.max(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z),

@@ -11,0 +11,0 @@ centerToleranceSquared: 1e-1

export { default as Ellipsoid } from './ellipsoid/ellipsoid';
export { isWGS84 } from './type-utils';
//# sourceMappingURL=index.js.map
import { Vector3, isArray, toRadians, toDegrees, config } from 'math.gl';
import { WGS84_CONSTANTS } from './constants';

@@ -58,2 +59,17 @@ const noop = x => x;

}
export function isWGS84(vector) {
if (!vector) {
return false;
}
scratchVector.from(vector);
const {
oneOverRadiiSquared,
centerToleranceSquared
} = WGS84_CONSTANTS;
const x2 = vector[0] * vector[0] * oneOverRadiiSquared[0];
const y2 = vector[1] * vector[1] * oneOverRadiiSquared[1];
const z2 = vector[2] * vector[2] * oneOverRadiiSquared[2];
return Math.abs(x2 + y2 + z2 - 1) < centerToleranceSquared;
}
//# sourceMappingURL=type-utils.js.map

@@ -8,3 +8,3 @@ export var WGS84_RADIUS_X = 6378137.0;

oneOverRadii: [1.0 / WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / WGS84_RADIUS_X * WGS84_RADIUS_X, 1.0 / WGS84_RADIUS_Y * WGS84_RADIUS_Y, 1.0 / WGS84_RADIUS_Z * WGS84_RADIUS_Z],
oneOverRadiiSquared: [1.0 / (WGS84_RADIUS_X * WGS84_RADIUS_X), 1.0 / (WGS84_RADIUS_Y * WGS84_RADIUS_Y), 1.0 / (WGS84_RADIUS_Z * WGS84_RADIUS_Z)],
maximumRadius: Math.max(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z),

@@ -11,0 +11,0 @@ centerToleranceSquared: 1e-1

export { default as Ellipsoid } from './ellipsoid/ellipsoid';
export { isWGS84 } from './type-utils';
//# sourceMappingURL=index.js.map
import { Vector3, isArray, toRadians, toDegrees, config } from 'math.gl';
import { WGS84_CONSTANTS } from './constants';

@@ -60,2 +61,15 @@ var noop = function noop(x) {

}
export function isWGS84(vector) {
if (!vector) {
return false;
}
scratchVector.from(vector);
var oneOverRadiiSquared = WGS84_CONSTANTS.oneOverRadiiSquared,
centerToleranceSquared = WGS84_CONSTANTS.centerToleranceSquared;
var x2 = vector[0] * vector[0] * oneOverRadiiSquared[0];
var y2 = vector[1] * vector[1] * oneOverRadiiSquared[1];
var z2 = vector[2] * vector[2] * oneOverRadiiSquared[2];
return Math.abs(x2 + y2 + z2 - 1) < centerToleranceSquared;
}
//# sourceMappingURL=type-utils.js.map

@@ -8,3 +8,3 @@ {

},
"version": "3.0.0-alpha.5",
"version": "3.0.0-alpha.6",
"keywords": [

@@ -37,5 +37,5 @@ "webgl",

"gl-matrix": "^3.0.0",
"math.gl": "3.0.0-alpha.5"
"math.gl": "3.0.0-alpha.6"
},
"gitHead": "ed165ad1fd1461c74e7f9b765c7a264d8132a312"
"gitHead": "9d7f6a275920f2c008d4a450c25de0e9f7b72ede"
}

@@ -19,5 +19,5 @@ // This file is derived from the Cesium math library under Apache 2 license

oneOverRadiiSquared: [
(1.0 / WGS84_RADIUS_X) * WGS84_RADIUS_X,
(1.0 / WGS84_RADIUS_Y) * WGS84_RADIUS_Y,
(1.0 / WGS84_RADIUS_Z) * WGS84_RADIUS_Z
1.0 / (WGS84_RADIUS_X * WGS84_RADIUS_X),
1.0 / (WGS84_RADIUS_Y * WGS84_RADIUS_Y),
1.0 / (WGS84_RADIUS_Z * WGS84_RADIUS_Z)
],

@@ -24,0 +24,0 @@ maximumRadius: Math.max(WGS84_RADIUS_X, WGS84_RADIUS_Y, WGS84_RADIUS_Z),

export {default as Ellipsoid} from './ellipsoid/ellipsoid';
export {isWGS84} from './type-utils';

@@ -5,2 +5,3 @@ // This file is derived from the Cesium math library under Apache 2 license

import {Vector3, isArray, toRadians, toDegrees, config} from 'math.gl';
import {WGS84_CONSTANTS} from './constants';

@@ -60,1 +61,13 @@ const noop = x => x;

}
export function isWGS84(vector) {
if (!vector) {
return false;
}
scratchVector.from(vector);
const {oneOverRadiiSquared, centerToleranceSquared} = WGS84_CONSTANTS;
const x2 = vector[0] * vector[0] * oneOverRadiiSquared[0];
const y2 = vector[1] * vector[1] * oneOverRadiiSquared[1];
const z2 = vector[2] * vector[2] * oneOverRadiiSquared[2];
return Math.abs(x2 + y2 + z2 - 1) < centerToleranceSquared;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc