26#include <grass/dataquad.h>
82 for (i = 0; i <= kmax; i++) {
98 double ew_res, ns_res;
106 if (data->
n_rows % 2 == 0) {
113 if (data->
n_cols % 2 == 0) {
148 for (
int i = 0; i < data->
n_points; i++) {
149 double xx = data->
points[i].x - point->
x;
150 double yy = data->
points[i].y - point->
y;
178 double xmin, xmax, ymin, ymax;
185 if (((data->
x_orig >= xmin) && (data->
x_orig <= xmax) &&
232 double ew_res, ns_res;
239 "Points are too concentrated -- please increase DMIN\n");
243 if (data->
n_cols % 2 == 0) {
251 if (data->
n_rows % 2 == 0) {
277 for (i = 0; i < data->
n_points; i++) {
317 for (i = 0; i < data->
n_points; i++) {
321 if ((point->
x > xmin) && (point->
x < xmax) && (point->
y > ymin) &&
int quad_add_data(struct triple *point, struct quaddata *data, double dmin)
int quad_division_check(struct quaddata *data, int kmax)
int quad_get_points(struct quaddata *data_inter, struct quaddata *data, int MAX)
int quad_intersect(struct quaddata *data_inter, struct quaddata *data)
int quad_compare(struct triple *point, struct quaddata *data)
struct triple * quad_point_new(double x, double y, double z, double sm)
struct quaddata * quad_data_new(double x_or, double y_or, double xmax, double ymax, int rows, int cols, int n_points, int kmax)
struct quaddata ** quad_divide_data(struct quaddata *data, int kmax, double dmin)