Lines Matching defs:coords
133 static int pointinrect(const double point[2], double coords[MAXVERTS][2])
136 if (coords[0][X] > coords[1][X]) {
137 max[0] = coords[0][X];
138 min[0] = coords[1][X];
141 max[0] = coords[1][X];
142 min[0] = coords[0][X];
145 if (coords[0][Y] > coords[1][Y]) {
146 max[1] = coords[0][Y];
147 min[1] = coords[1][Y];
150 max[1] = coords[1][Y];
151 min[1] = coords[0][Y];
158 static int pointincircle(const double point[2], double coords[MAXVERTS][2])
162 radius1 = ((coords[0][Y] - coords[1][Y]) * (coords[0][Y] - coords[1][Y]))
163 + ((coords[0][X] - coords[1][X]) * (coords[0][X] - coords[1][X]));
165 radius2 = ((coords[0][Y] - point[Y]) * (coords[0][Y] - point[Y]))
166 + ((coords[0][X] - point[X]) * (coords[0][X] - point[X]));
203 static int is_closer(const double point[2], double coords[MAXVERTS][2],
206 double dist_squared = ((point[X] - coords[0][X])
207 * (point[X] - coords[0][X]))
208 + ((point[Y] - coords[0][Y])
209 * (point[Y] - coords[0][Y]));