Calculate the bearing between two points on a spheroid.
Calculate the bearing between two points on a spheroid.
- Parameters
-
r | - location of first point. |
s | - location of second point. |
spheroid | - spheroid definition. |
- Returns
- azimuth - azimuth in radians.
Definition at line 2156 of file lwgeodetic.c.
2159 double x1, y1, x2, y2;
double lwpoint_get_x(const LWPOINT *point)
double lwpoint_get_y(const LWPOINT *point)
void geographic_point_init(double lon, double lat, GEOGRAPHIC_POINT *g)
Initialize a geographic point.
double spheroid_direction(const GEOGRAPHIC_POINT *r, const GEOGRAPHIC_POINT *s, const SPHEROID *spheroid)
Computes the forward azimuth of the geodesic joining two points on the spheroid, using the inverse ge...
Point in spherical coordinates on the world.
References FP_EQUALS, geographic_point_init(), lwpoint_get_x(), lwpoint_get_y(), NAN, r, s, and spheroid_direction().
Referenced by geography_azimuth().