PostGIS  2.2.7dev-r@@SVN_REVISION@@
void lw_dist2d_distpts_init ( DISTPTS dl,
int  mode 
)

Definition at line 53 of file measures.c.

References DIST_MIN, DISTPTS::distance, DISTPTS::mode, DISTPTS::p1, DISTPTS::p2, DISTPTS::tolerance, DISTPTS::twisted, POINT2D::x, and POINT2D::y.

Referenced by lw_dist2d_seg_arc(), test_lw_dist2d_arc_arc(), test_lw_dist2d_pt_arc(), test_lw_dist2d_pt_ptarrayarc(), test_lw_dist2d_ptarray_ptarrayarc(), and test_lw_dist2d_seg_arc().

54 {
55  dl->twisted = -1;
56  dl->p1.x = dl->p1.y = 0.0;
57  dl->p2.x = dl->p2.y = 0.0;
58  dl->mode = mode;
59  dl->tolerance = 0.0;
60  if ( mode == DIST_MIN )
61  dl->distance = FLT_MAX;
62  else
63  dl->distance = -1 * FLT_MAX;
64 }
int mode
Definition: measures.h:27
POINT2D p1
Definition: measures.h:25
double tolerance
Definition: measures.h:29
double x
Definition: liblwgeom.h:312
#define DIST_MIN
Definition: measures.h:17
POINT2D p2
Definition: measures.h:26
double y
Definition: liblwgeom.h:312
int twisted
Definition: measures.h:28
double distance
Definition: measures.h:24

Here is the caller graph for this function: