1101{
1102 const POINT2D *p1, *p2, *p3, *q1, *q2, *q3;
1104
1105
1106
1108
1110 {
1112 {
1114
1116 {
1120 break;
1121
1126 break;
1127
1133 break;
1134
1135 default:
1136 lwerror(
"%s: unsupported segment type", __func__);
1137 }
1138 break;
1139 }
1140
1142 {
1145
1147 {
1151 break;
1152
1157
1158
1159
1160
1161
1162
1163
1164 break;
1165
1171 break;
1172
1173 default:
1174 lwerror(
"%s: unsupported segment type", __func__);
1175 }
1176 break;
1177 }
1179 {
1183
1185 {
1189 break;
1190
1195 break;
1196
1202 break;
1203
1204 default:
1205 lwerror(
"%s: unsupported segment type", __func__);
1206 }
1207 break;
1208 }
1209 default:
1210 lwerror(
"%s: unsupported segment type", __func__);
1211 }
1212
1213
1215 {
1219 }
1220
1222}
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
int lw_dist2d_pt_arc(const POINT2D *P, const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, DISTPTS *dl)
int lw_dist2d_pt_seg(const POINT2D *p, const POINT2D *A, const POINT2D *B, DISTPTS *dl)
lw_dist2d_comp from p to line A->B This one is now sending every occasion to lw_dist2d_pt_pt Before i...
int lw_dist2d_seg_seg(const POINT2D *A, const POINT2D *B, const POINT2D *C, const POINT2D *D, DISTPTS *dl)
Finds the shortest distance between two segments.
int lw_dist2d_seg_arc(const POINT2D *A1, const POINT2D *A2, const POINT2D *B1, const POINT2D *B2, const POINT2D *B3, DISTPTS *dl)
Calculate the shortest distance between an arc and an edge.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)
int lw_dist2d_arc_arc(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, const POINT2D *B1, const POINT2D *B2, const POINT2D *B3, DISTPTS *dl)
int lw_dist2d_pt_pt(const POINT2D *thep1, const POINT2D *thep2, DISTPTS *dl)
Compares incoming points and stores the points closest to each other or most far away from each other...
Structure used in distance-calculations.
RECT_NODE_SEG_TYPE seg_type