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

Definition at line 17 of file lwalgorithm.c.

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

Referenced by lwline_split_by_point_to(), ptarray_segmentize_sphere(), and segment_locate_along().

18 {
19  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) )
20  return LW_TRUE;
21  else
22  return LW_FALSE;
23 }
double x
Definition: liblwgeom.h:336
double m
Definition: liblwgeom.h:336
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
double z
Definition: liblwgeom.h:336
#define FP_EQUALS(A, B)
double y
Definition: liblwgeom.h:336

Here is the caller graph for this function: