1686 double dist_sqr, shortest_sqr;
1691 if (radius_A == radius_B)
1732 proj.
x = CENTER->
x + (B1->
x - CENTER->
x) * radius_A / radius_B;
1733 proj.
y = CENTER->
y + (B1->
y - CENTER->
y) * radius_A / radius_B;
1739 dl->
distance = fabs(radius_A - radius_B);
1743 proj.
x = CENTER->
x + (B3->
x - CENTER->
x) * radius_A / radius_B;
1744 proj.
y = CENTER->
y + (B3->
y - CENTER->
y) * radius_A / radius_B;
1749 dl->
distance = fabs(radius_A - radius_B);
1757 proj.
x = CENTER->
x + (A1->
x - CENTER->
x) * radius_B / radius_A;
1758 proj.
y = CENTER->
y + (A1->
y - CENTER->
y) * radius_B / radius_A;
1763 dl->
distance = fabs(radius_A - radius_B);
1768 proj.
x = CENTER->
x + (A3->
x - CENTER->
x) * radius_B / radius_A;
1769 proj.
y = CENTER->
y + (A3->
y - CENTER->
y) * radius_B / radius_A;
1774 dl->
distance = fabs(radius_A - radius_B);
1785 if (dist_sqr < shortest_sqr)
1787 shortest_sqr = dist_sqr;
1793 if (dist_sqr < shortest_sqr)
1795 shortest_sqr = dist_sqr;
1801 if (dist_sqr < shortest_sqr)
1803 shortest_sqr = dist_sqr;
#define LW_TRUE
Return types for functions with status returns.
int lw_segment_side(const POINT2D *p1, const POINT2D *p2, const POINT2D *q)
lw_segment_side()
double distance2d_sqr_pt_pt(const POINT2D *p1, const POINT2D *p2)