PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 106 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().

107 {
108  if ( A1->x == A2->x && A2->x == A3->x &&
109  A1->y == A2->y && A2->y == A3->y )
110  return LW_TRUE;
111  else
112  return LW_FALSE;
113 }
double x
Definition: liblwgeom.h:284
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
double y
Definition: liblwgeom.h:284

Here is the caller graph for this function: