Loading...
Searching...
No Matches
dataquad.h
Go to the documentation of this file.
/*!
* \file qtree.c
*
* \author
* H. Mitasova, I. Kosinovsky, D. Gerdes, Fall 1993,
* University of Illinois and
* US Army Construction Engineering Research Lab
*
* \author H. Mitasova (University of Illinois),
* \author I. Kosinovsky, (USA-CERL)
* \author D.Gerdes (USA-CERL)
*
* \author modified by H. Mitasova, November 1996 (include variable smoothing)
*
* \copyright
* (C) 1993-1996 by Helena Mitasova and the GRASS Development Team
*
* \copyright
* This program is free software under the
* GNU General Public License (>=v2).
* Read the file COPYING that comes with GRASS for details.
*/
#ifndef DATAQUAD_H
#define DATAQUAD_H
#define NW 1
#define NE 2
#define SW 3
#define SE 4
/*!
* Point structure to keep coordinates
*
* It also contains smoothing for the given point.
*/
struct triple {
double x;
double y;
double z;
double sm; /*!< variable smoothing */
};
struct quaddata {
double x_orig;
double y_orig;
double xmax;
double ymax;
int n_rows;
int n_cols;
int n_points;
struct triple *points;
};
struct triple *quad_point_new(double, double, double, double);
struct quaddata *quad_data_new(double, double, double, double, int, int, int,
int);
int quad_compare(struct triple *, struct quaddata *);
int quad_add_data(struct triple *, struct quaddata *, double);
int quad_intersect(struct quaddata *, struct quaddata *);
int quad_division_check(struct quaddata *, int);
struct quaddata **quad_divide_data(struct quaddata *, int, double);
int quad_get_points(struct quaddata *, struct quaddata *, int);
#endif
quad_data_new
struct quaddata * quad_data_new(double, double, double, double, int, int, int, int)
Definition dataquad.c:59
quad_divide_data
struct quaddata ** quad_divide_data(struct quaddata *, int, double)
Definition dataquad.c:226
quad_get_points
int quad_get_points(struct quaddata *, struct quaddata *, int)
Definition dataquad.c:305
quad_intersect
int quad_intersect(struct quaddata *, struct quaddata *)
Definition dataquad.c:176
quad_add_data
int quad_add_data(struct triple *, struct quaddata *, double)
Definition dataquad.c:139
quad_division_check
int quad_division_check(struct quaddata *, int)
Definition dataquad.c:209
quad_compare
int quad_compare(struct triple *, struct quaddata *)
Definition dataquad.c:95
quad_point_new
struct triple * quad_point_new(double, double, double, double)
Definition dataquad.c:36
quaddata
Definition dataquad.h:45
quaddata::ymax
double ymax
Definition dataquad.h:49
quaddata::y_orig
double y_orig
Definition dataquad.h:47
quaddata::x_orig
double x_orig
Definition dataquad.h:46
quaddata::points
struct triple * points
Definition dataquad.h:53
quaddata::n_points
int n_points
Definition dataquad.h:52
quaddata::xmax
double xmax
Definition dataquad.h:48
quaddata::n_cols
int n_cols
Definition dataquad.h:51
quaddata::n_rows
int n_rows
Definition dataquad.h:50
triple
Definition dataquad.h:38
triple::z
double z
Definition dataquad.h:41
triple::sm
double sm
Definition dataquad.h:42
triple::x
double x
Definition dataquad.h:39
triple::y
double y
Definition dataquad.h:40