PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ edge_set()

static void edge_set ( double  lon1,
double  lat1,
double  lon2,
double  lat2,
GEOGRAPHIC_EDGE e 
)
static

Definition at line 347 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().

348 {
349  e->start.lon = lon1;
350  e->start.lat = lat1;
351  e->end.lon = lon2;
352  e->end.lat = lat2;
353  edge_deg2rad(e);
354 }
static void edge_deg2rad(GEOGRAPHIC_EDGE *e)
Convert an edge from degrees to radians.
Definition: cu_geodetic.c:32
GEOGRAPHIC_POINT start
Definition: lwgeodetic.h:63
GEOGRAPHIC_POINT end
Definition: lwgeodetic.h:64
Here is the call graph for this function:
Here is the caller graph for this function: