PostGIS  3.2.2dev-r@@SVN_REVISION@@

◆ lw_pt_in_arc()

int lw_pt_in_arc ( const POINT2D P,
const POINT2D A1,
const POINT2D A2,
const POINT2D A3 
)

Returns true if P is on the same side of the plane partition defined by A1/A3 as A2 is.

Only makes sense if P has already been determined to be on the circle defined by A1/A2/A3.

Definition at line 84 of file lwalgorithm.c.

85 {
86  int pt_side = lw_segment_side(A1, A3, P);
87  int arc_side = lw_segment_side(A1, A3, A2);
88  return pt_side == 0 || pt_side == arc_side;
89 }
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
Definition: lwalgorithm.c:63

References lw_segment_side().

Referenced by lw_dist2d_arc_arc(), lw_dist2d_circle_intersections(), lw_dist2d_pt_arc(), lw_dist2d_seg_arc(), ptarrayarc_contains_point_partial(), and ptarrayarc_raycast_intersections().

Here is the call graph for this function:
Here is the caller graph for this function: