fromDegreesArrayHeights distance unit undocumented

The function fromDegreesArrayHeights() documentation (https://cesiumjs.org/Cesium/Build/Documentation/Cartesian3.html) 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,

Kirk

Hello,

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: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Terrain.html&label=All

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

Best,

Hannah

Thank you, Hannah!