PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ p4d_same()

int p4d_same ( const POINT4D p1,
const POINT4D p2 
)

Definition at line 31 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().

32 {
33  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) )
34  return LW_TRUE;
35  else
36  return LW_FALSE;
37 }
double x
Definition: liblwgeom.h:352
double m
Definition: liblwgeom.h:352
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
double z
Definition: liblwgeom.h:352
#define FP_EQUALS(A, B)
double y
Definition: liblwgeom.h:352
Here is the caller graph for this function: