text stringlengths 0 8.81k |
|---|
The second point of the triangle, corresponding to the barycentric y-axis. |
p2 |
Cartesian2 |
| |
Cartesian3 |
The third point of the triangle, corresponding to the barycentric z-axis. |
result |
Cartesian3 |
optional |
The object onto which to store the result. |
Returns: |
The modified result parameter or a new Cartesian3 instance if one was not provided. If the triangle is degenerate the function will return undefined. |
Example: |
// Returns Cartesian3.UNIT_X |
const p = new Cesium.Cartesian3(-1.0, 0.0, 0.0); |
const b = Cesium.barycentricCoordinates(p, |
new Cesium.Cartesian3(-1.0, 0.0, 0.0), |
new Cesium.Cartesian3( 1.0, 0.0, 0.0), |
new Cesium.Cartesian3( 0.0, 1.0, 1.0)); |
binarySearch(array, itemToFind, comparator) → number |
engine/Source/Core/binarySearch.js 24 |
Finds an item in a sorted array. |
Name |
Type |
Description |
array |
Array |
The sorted array to search. |
itemToFind |
* |
The item to find in the array. |
comparator |
binarySearchComparator |
The function to use to compare the item to |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.