PostGIS  2.1.10dev-r@@SVN_REVISION@@
int p4d_same ( const POINT4D p1,
const POINT4D p2 
)

Definition at line 29 of file lwalgorithm.c.

References FP_EQUALS, LW_FALSE, LW_TRUE, POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by ptarray_segmentize_sphere().

30 {
31  if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) && FP_EQUALS(p1->z,p2->z) && FP_EQUALS(p1->m,p2->m) )
32  return LW_TRUE;
33  else
34  return LW_FALSE;
35 }
double x
Definition: liblwgeom.h:308
double m
Definition: liblwgeom.h:308
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
double z
Definition: liblwgeom.h:308
#define FP_EQUALS(A, B)
double y
Definition: liblwgeom.h:308

Here is the caller graph for this function: