Set heightReference to match the position

I am trying to add a point entity to a cesium viewer along with 3dtileset.

I have the lat and lng of the point but not the height. I want to clamp the point to the ground or the 3dtileset, whichever one is at that lat,lng position.

The 3dtileset is usually (slightly) above the globe terrain.

sandcastle example (two points with CLAMP_TO_3D_TILE but only one is showing): Cesium Sandcastle

Two points in the same position, you can print out the calculated position to see

2 points in the same position makes sense. thank you!

but what do you mean print out the calculated position?