PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void edge_set ( double  lon1,
double  lat1,
double  lon2,
double  lat2,
GEOGRAPHIC_EDGE e 
)
static

Definition at line 327 of file cu_geodetic.c.

References edge_deg2rad(), GEOGRAPHIC_EDGE::end, GEOGRAPHIC_POINT::lat, GEOGRAPHIC_POINT::lon, and GEOGRAPHIC_EDGE::start.

Referenced by test_edge_distance_to_edge(), test_edge_distance_to_point(), and test_edge_intersection().

328 {
329  e->start.lon = lon1;
330  e->start.lat = lat1;
331  e->end.lon = lon2;
332  e->end.lat = lat2;
333  edge_deg2rad(e);
334 }
static void edge_deg2rad(GEOGRAPHIC_EDGE *e)
Convert an edge from degrees to radians.
Definition: cu_geodetic.c:27
GEOGRAPHIC_POINT start
Definition: lwgeodetic.h:44
GEOGRAPHIC_POINT end
Definition: lwgeodetic.h:45

Here is the call graph for this function:

Here is the caller graph for this function: