From: Peter V. <Pet...@es...> - 2002-03-06 07:27:18
|
> double x = points[j].get_x(), y = points[j].get_y(), w = points[j].get_w(); > if (w < 0) { x *= -1; y *= -1; w *= -1; } > if(y >= row_check_lower*w && y < row_check_upper*w && > x >= col_check_lower*w && x < col_check_upper*w) > list.push_back(index[j]); > > This is not the same as what was suggested, and it still doesn't work. It is equivalent to what is suggested, but avoids division (potentially by 0). Peter. |