You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
555 B
JavaScript

import { FeatureDetection } from "../Source/Cesium.js";
function isTypedArray(o) {
return FeatureDetection.typedArrayTypes.some(function (type) {
return o instanceof type;
});
}
function typedArrayToArray(array) {
if (array !== null && typeof array === "object" && isTypedArray(array)) {
return Array.prototype.slice.call(array, 0);
}
return array;
}
function equals(util, customEqualiyTesters, a, b) {
a = typedArrayToArray(a);
b = typedArrayToArray(b);
return util.equals(a, b, customEqualiyTesters);
}
export default equals;