Lines Matching +refs:point +refs:min
34 * Added point datatype, using code in NCSA's version 1.8 imagemap.c
36 * The point code is originally added by Craig Milo Rogers, Rogers@ISI.Edu
133 static int pointinrect(const double point[2], double coords[MAXVERTS][2])
135 double max[2], min[2];
138 min[0] = coords[1][X];
142 min[0] = coords[0][X];
147 min[1] = coords[1][Y];
151 min[1] = coords[0][Y];
154 return ((point[X] >= min[0] && point[X] <= max[0]) &&
155 (point[Y] >= min[1] && point[Y] <= max[1]));
158 static int pointincircle(const double point[2], double coords[MAXVERTS][2])
165 radius2 = ((coords[0][Y] - point[Y]) * (coords[0][Y] - point[Y]))
166 + ((coords[0][X] - point[X]) * (coords[0][X] - point[X]));
174 static int pointinpoly(const double point[2], double pgon[MAXVERTS][2])
177 double x = point[X], y = point[Y];
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]));
211 if (point[X] < 0 || point[Y] < 0) {
217 return (1); /* if this is the first point or is the closest yet
285 * trailing quote, and set *string to point at the first character
449 } /* by this point, value does not start
817 if (!strcasecmp(directive, "point")) { /* point */
836 if (closest) { /* if a 'point' directive has been seen */