MCPcopy
hub / github.com/CesiumGS/cesium / toCartesian

Function toCartesian

packages/engine/Source/Scene/GeoJsonPrimitive.js:828–836  ·  view source on GitHub ↗

* @param {GeoJsonPosition} position * @param {Ellipsoid} ellipsoid * @param {Cartesian3} result * @returns {Cartesian3} * @ignore

(position, ellipsoid, result)

Source from the content-addressed store, hash-verified

826 * @ignore
827 */
828function toCartesian(position, ellipsoid, result) {
829 return Cartesian3.fromDegrees(
830 position[0],
831 position[1],
832 position[2] ?? 0,
833 ellipsoid,
834 result,
835 );
836}
837
838const scratchCartesian = new Cartesian3();
839

Callers 2

constructorMethod · 0.85
packPositionsToScratchFunction · 0.85

Calls 1

fromDegreesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…