pe_geographic_coordinate |
Finds the point at some distance and azimuth from a point along a geodesic, loxodrome, or great elliptic
void pe_geographic_coordinate (double a, double e2, double lam1, double phi1, double distance, double az12, double *lam2, double *phi2, int geographic_linetype);
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 | Geodesic 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 |
geographic_linetype | Type of the line to use |
The pe_geographic_coordinate function takes a spheroid, point, distance, and azimuth and calculates the target point. The geographic_linetype parameter specifies the type of line to use: geodesic, loxodrome, or great elliptic. A geodesic is the shortest distance between two points on a spheroid. A loxodrome is a line of equal bearing (a straight line in a Mercator projection). A great elliptic is the line created by the intersection of the spheroid surface with a plane formed by the center of the spheroid and two points on its surface. The valid line type values are:
PE_LINETYPE_GEODESIC 0
PE_LINETYPE_LOXODROME 1
PE_LINETYPE_GREAT_ELLIPTIC 2
Longitude and latitude (in radians) of the new point