PostGIS  2.1.10dev-r@@SVN_REVISION@@
int p3d_same ( const POINT3D p1,
const POINT3D p2 

Definition at line 38 of file lwalgorithm.c.

References FP_EQUALS, LW_FALSE, LW_TRUE, POINT3D::x, POINT3D::y, and POINT3D::z.

Referenced by edge_calculate_gbox().

39 {
40  if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) && FP_EQUALS(p1->z,p2->z) )
41  return LW_TRUE;
42  else
43  return LW_FALSE;
44 }
double y
Definition: liblwgeom.h:296
double x
Definition: liblwgeom.h:296
double z
Definition: liblwgeom.h:296
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
#define FP_EQUALS(A, B)

Here is the caller graph for this function: