PostGIS  2.5.0dev-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 105 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().

106 {
107  if ( A1->x == A2->x && A2->x == A3->x &&
108  A1->y == A2->y && A2->y == A3->y )
109  return LW_TRUE;
110  else
111  return LW_FALSE;
112 }
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
Here is the caller graph for this function: