pe_great_elliptic_coordinate

Finds the point at some distance and azimuth from a point along a great elliptic

Usage syntax

void pe_great_elliptic_coordinate (double a, double e2, double lam1, double phi1, double distance, double az12, double *lam2, double *phi2);

Parameters
a Semimajor axis of the spheroid
e2 Eccentricity squared of the spheroid
lam1 Longitude value of the first point
phi1 Latitude value of the first point
distance Distance
az12 Azimuth from from the first to the second point
lam2 Longitude value of the new point
phi2 Latitude value of the new point
Description

The pe_great_elliptic_coordinate function takes a spheroid, point, distance, and azimuth and calculates the target point. A great elliptic is the line formed by intersecting a plane with the surface of a spheroid. The plane is defined by the center of the spheroid and two points on its surface. Set e2 to zero to calculate distances on a sphere. The geographic coordinates and the azimuth are in radians. The azimuth value range is -π ≤ azimuth ≤ +π. An azimuth is measured positive clockwise with North equal to a zero azimuth. The semimajor axis (a) and the distance are usually given in meters. You can use any linear unit of measure as long as both values use the same unit of measure.

Returns

Longitude and latitude (in radians) of the new point