PostGIS  2.5.1dev-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(), lwgeom_simplify_in_place(), 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:330
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
double y
Definition: liblwgeom.h:330
#define FP_EQUALS(A, B)
Here is the caller graph for this function: