How to calculate the vertical distance and horizontal distance between two points

166 views
Skip to first unread message

yangb...@gmail.com

unread,
Nov 14, 2017, 4:29:04 AM11/14/17
to cesium-dev

The horizontal and vertical distances that I draw on the cesium are weird, the same for X and Y, and the two points for different Z values ​​are not on a vertical line, I don't know how to set parameter,thank you!

Klaus Rheinwald

unread,
Nov 15, 2017, 3:55:17 AM11/15/17
to cesium-dev
Are you maybe mixing Cartesian3 and Cartographic coordinates?

Gabby Getz

unread,
Nov 17, 2017, 5:48:54 PM11/17/17
to cesium-dev
For reference, Cartesian3 objects are (x, y, z) coordinates in world space. Cartographic objects are (lat, long, height) coordinates. You can convert between them, see the linked documentation.

Thanks,
Gabby

On Wed, Nov 15, 2017 at 3:55 AM, 'Klaus Rheinwald' via cesium-dev <cesiu...@googlegroups.com> wrote:
Are you maybe mixing Cartesian3 and Cartographic coordinates?

--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages