text stringlengths 0 8.81k |
|---|
engine/Source/Scene/GltfLoader.js 366 |
Loads the gltf object |
mergeSort(array, comparator, userDefinedObject) |
engine/Source/Core/mergeSort.js 55 |
A stable merge sort. |
Name |
Type |
Description |
array |
Array |
The array to sort. |
comparator |
mergeSortComparator |
The function to use to compare elements in the array. |
userDefinedObject |
* |
optional |
Any item to pass as the third parameter to comparator. |
Example: |
// Assume array contains BoundingSpheres in world coordinates. |
// Sort them in ascending order of distance from the camera. |
const position = camera.positionWC; |
Cesium.mergeSort(array, function(a, b, position) { |
return Cesium.BoundingSphere.distanceSquaredTo(b, position) - Cesium.BoundingSphere.distanceSquaredTo(a, position); |
}, position); |
objectToQuery(obj) → string |
engine/Source/Core/objectToQuery.js 4 |
Converts an object representing a set of name/value pairs into a query string, |
with names and values encoded properly for use in a URL. Values that are arrays |
will produce multiple values with the same name. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.