fromDegreesArrayHeights distance unit undocumented

The function fromDegreesArrayHeights() documentation ( does not indicate the unit of measure for height. I am using this to draw an orthogonal location trace from an aircraft’s altitude to the surface, and I would like the trace height to be consistent with terrainProvider effects, What units are used for the height?

By the way, is there a convenient function to get the surface height at a given location (for the ground endpoint of this orthogonal segment)?

Thank you,



All measurements in Cesium are in meters.

If you have terrain turned on, you can get the lon/lat/height Cartographic positions for a given array using the sampleTerrain function.

This demo shows how to use that function:

Look for “Sample Everest Terrain” towards the end of the code.



Thank you, Hannah!