PostGIS
3.2.2dev-r@@SVN_REVISION@@
|
|
static |
Calculates the intersection points of a circle and line.
This function assumes the center and test point are distinct. Finds the line between the circle center and test point, and the two intersection points on the circle defined by that line. If those points fall within the provided arc (A1,A2,A3) then the points are added to the provided array (I) and the array length counter is incremented.
A1 | Point of arc |
A2 | Point of arc |
A3 | Point of arc |
center_A | Center of arc A circle |
radius_A | Radius of arc A circle |
P | Point to use in calculating intersection line |
I | [out] Pointer to an return value array |
ni | [out] Pointer to return array size counter |
Definition at line 1566 of file measures.c.
References lw_pt_in_arc(), p2d_same(), POINT2D::x, and POINT2D::y.
Referenced by lw_dist2d_arc_arc().