PostGIS  3.6.1dev-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 91 of file lwalgorithm.c.

92 {
93  int pt_side = lw_segment_side(A1, A3, P);
94  int arc_side = lw_segment_side(A1, A3, A2);
95  return pt_side == 0 || pt_side == arc_side;
96 }
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
Definition: lwalgorithm.c:70

References lw_segment_side().

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

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