openlvc / disco

Java library for Distributed Interactive Simulation
11 stars 3 forks source link

Adds simple vector distance calculations for WorldCoordinates #35

Closed michaelrfraser closed 4 years ago

michaelrfraser commented 4 years ago

The havershine formula is used to calculate distances between two points in LLA space, however it is a relatively heavy operation.

When the two points are already expressed in the WGS84 (xyz) space, we can use a simple vector distance instead, which is much faster.