PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lw_arc_is_pt()

int lw_arc_is_pt ( const POINT2D A1,
const POINT2D A2,
const POINT2D A3 
)

Returns true if arc A is actually a point (all vertices are the same) .

Definition at line 91 of file lwalgorithm.c.

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

Referenced by lw_arc_length(), lw_dist2d_arc_arc(), lw_dist2d_pt_arc(), lw_dist2d_seg_arc(), and ptarrayarc_contains_point_partial().

92 {
93  if ( A1->x == A2->x && A2->x == A3->x &&
94  A1->y == A2->y && A2->y == A3->y )
95  return LW_TRUE;
96  else
97  return LW_FALSE;
98 }
double x
Definition: liblwgeom.h:312
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
double y
Definition: liblwgeom.h:312
Here is the caller graph for this function: