PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ p2d_same()

int p2d_same ( const POINT2D p1,
const POINT2D p2 
)

Definition at line 49 of file lwalgorithm.c.

50 {
51  return FP_EQUALS(p1->x, p2->x)
52  && FP_EQUALS(p1->y, p2->y);
53 }
#define FP_EQUALS(A, B)
double y
Definition: liblwgeom.h:390
double x
Definition: liblwgeom.h:390

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

Referenced by lw_arc_length(), lw_dist2d_pt_arc(), lwgeom_simplify_in_place(), ptarray_append_ptarray(), ptarray_contains_point_partial(), ptarray_locate_point(), ptarray_locate_point_spheroid(), and ptarrayarc_contains_point_partial().

Here is the caller graph for this function: