True if the longitude of p is within the range of the longitude of the ends of e.
Definition at line 831 of file lwgeodetic.c.
References GEOGRAPHIC_EDGE::end, FP_EQUALS, FP_MAX, FP_MIN, GEOGRAPHIC_POINT::lat, GEOGRAPHIC_POINT::lon, LW_FALSE, LW_TRUE, LWDEBUG, LWDEBUGF, SIGNUM, and GEOGRAPHIC_EDGE::start.
835 double slon = fabs((e->
start).lon) + fabs((e->
end).lon);
836 double dlon = fabs(fabs((e->
start).lon) - fabs((e->
end).lon));
837 double slat = (e->
start).lat + (e->
end).lat;
840 LWDEBUGF(4,
"e.end == GPOINT(%.6g %.6g) ", (e->
end).lat, (e->
end).lon);
850 LWDEBUG(4,
"vertical plane, we need to do this calculation in latitude");
869 LWDEBUG(4,
"over the pole...");
888 LWDEBUG(4,
"north or south?...");
893 LWDEBUG(4,
"over the north pole...");
902 LWDEBUG(4,
"over the south pole...");
913 LWDEBUG(4,
"crosses dateline, flip longitudes...");
932 LWDEBUG(4,
"true, this edge contains point");
936 LWDEBUG(4,
"false, this edge does not contain point");
Two-point great circle segment from a to b.
#define LWDEBUG(level, msg)
Point in spherical coordinates on the world.
#define LW_TRUE
Return types for functions with status returns.
#define LWDEBUGF(level, msg,...)
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.