Great circle trajectory

I see from this discussion and the code base that it is possible to create a rhumbline trajectory. I was wondering if there was anything similar for a great-circle trajectory?

Never mind, found it. Nice work @greyskyy

1 Like

@greyskyy Just to check, two quick questions:

  1. The great circle code assumes the WGS84 ellipsoid, not just a sphere?
  2. Does it account for altitude?

@baubin yes to both.

in more detail:

  1. the great circle builder (WaypointPVBuilder.greatCircleBuilder(…)) takes a OneAxisEllipsoid parameter. If you provide the WGS84 ellipsoid, you’ll be following a great circle on that ellipsoid
  2. the altitude is assumed to be elevation above the ellipsoid. So, when interpolating between waypoints, we linearly interpolate between altitude as well.

Thanks a ton @greyskyy , I know I probably sounded a little redundant, but I just wanted to be sure.

1 Like