True if the longitude of p is within the range of the longitude of the ends of e.
Definition at line 783 of file lwgeodetic.c.
787 double slon = fabs((e->
start).lon) + fabs((e->
end).lon);
788 double dlon = fabs(fabs((e->
start).lon) - fabs((e->
end).lon));
789 double slat = (e->
start).lat + (e->
end).lat;
792 LWDEBUGF(4,
"e.end == GPOINT(%.6g %.6g) ", (e->
end).lat, (e->
end).lon);
802 LWDEBUG(4,
"vertical plane, we need to do this calculation in latitude");
821 LWDEBUG(4,
"over the pole...");
840 LWDEBUG(4,
"north or south?...");
845 LWDEBUG(4,
"over the north pole...");
854 LWDEBUG(4,
"over the south pole...");
865 LWDEBUG(4,
"crosses dateline, flip longitudes...");
884 LWDEBUG(4,
"true, this edge contains point");
888 LWDEBUG(4,
"false, this edge does not contain point");
#define LW_TRUE
Return types for functions with status returns.
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
Two-point great circle segment from a to b.
Point in spherical coordinates on the world.
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.