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

Definition at line 26 of file lwalgorithm.c.

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

Referenced by edge_calculate_gbox().

27 {
28  if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) && FP_EQUALS(p1->z,p2->z) )
29  return LW_TRUE;
30  else
31  return LW_FALSE;
32 }
double y
Definition: liblwgeom.h:324
double x
Definition: liblwgeom.h:324
double z
Definition: liblwgeom.h:324
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
#define FP_EQUALS(A, B)

Here is the caller graph for this function: