PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 121 of file lwalgorithm.c.

122{
123 if ( A1->x == A2->x && A2->x == A3->x &&
124 A1->y == A2->y && A2->y == A3->y )
125 return LW_TRUE;
126 else
127 return LW_FALSE;
128}
#define LW_FALSE
Definition liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
double y
Definition liblwgeom.h:390
double x
Definition liblwgeom.h:390

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_raycast_intersections().

Here is the caller graph for this function: