PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ p3d_same()

int p3d_same ( const POINT3D p1,
const POINT3D p2 
)

Definition at line 40 of file lwalgorithm.c.

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 }
#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)
double z
Definition: liblwgeom.h:343
double x
Definition: liblwgeom.h:343
double y
Definition: liblwgeom.h:343

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

Referenced by edge_calculate_gbox().

Here is the caller graph for this function: