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

Definition at line 27 of file measures.c.

References DIST_MIN, DISTPTS::distance, MAXFLOAT, 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().

28 {
29  dl->twisted = -1;
30  dl->p1.x = dl->p1.y = 0.0;
31  dl->p2.x = dl->p2.y = 0.0;
32  dl->mode = mode;
33  dl->tolerance = 0.0;
34  if ( mode == DIST_MIN )
35  dl->distance = MAXFLOAT;
36  else
37  dl->distance = -1 * MAXFLOAT;
38 }
int mode
Definition: measures.h:26
#define DIST_MIN
POINT2D p1
Definition: measures.h:24
double tolerance
Definition: measures.h:28
double x
Definition: liblwgeom.h:284
POINT2D p2
Definition: measures.h:25
double y
Definition: liblwgeom.h:284
int twisted
Definition: measures.h:27
double distance
Definition: measures.h:23
#define MAXFLOAT
Largest float value.

Here is the caller graph for this function: