PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ p3d_same()

int p3d_same ( const POINT3D p1,
const POINT3D p2 
)

Definition at line 40 of file lwalgorithm.c.

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

Referenced by edge_calculate_gbox().

41 {
42  if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) && FP_EQUALS(p1->z,p2->z) )
43  return LW_TRUE;
44  else
45  return LW_FALSE;
46 }
double y
Definition: liblwgeom.h:340
double x
Definition: liblwgeom.h:340
double z
Definition: liblwgeom.h:340
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
#define FP_EQUALS(A, B)
Here is the caller graph for this function: