PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ p2d_same()

int p2d_same ( const POINT2D p1,
const POINT2D p2 

Definition at line 49 of file lwalgorithm.c.

References FP_EQUALS, LW_FALSE, LW_TRUE, POINT2D::x, and POINT2D::y.

Referenced by _lwt_AddEdge(), _lwt_FindNextRingEdge(), _lwt_FirstDistinctVertex2D(), _lwt_GetInteriorEdgePoint(), lw_arc_length(), lw_dist2d_pt_arc(), lwt_AddIsoEdge(), lwt_ChangeEdgeGeom(), ptarray_append_ptarray(), ptarray_contains_point_partial(), ptarray_locate_point(), and ptarrayarc_contains_point_partial().

50 {
51  if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) )
52  return LW_TRUE;
53  else
54  return LW_FALSE;
55 }
double x
Definition: liblwgeom.h:328
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
double y
Definition: liblwgeom.h:328
#define FP_EQUALS(A, B)
Here is the caller graph for this function: