29static double d_atan2(
double,
double);
62 for (i = 1; i < n_points - 1; i++) {
114 for (i = n_points - 2; i > 0; i--) {
158 for (i = 1; i < n_points; i++) {
184 G_debug(5,
"dig_line_degenerate()");
189 G_debug(5,
" Line is degenerate (one points)");
195 for (i = 1; i < n_points; i++) {
196 if (points->
x[i] != points->
x[i - 1] ||
197 points->
y[i] != points->
y[i - 1]) {
204 G_debug(5,
" Line is degenerate (more points)");
211static double d_atan2(
double y,
double x)
213 if (y == 0.0 && x == 0.0)
216 return (
atan2(y, x));
float dig_calc_end_angle(const struct line_pnts *points, double thresh)
float dig_calc_begin_angle(const struct line_pnts *points, double thresh)
int dig_line_degenerate(const struct line_pnts *points)
int dig_is_line_degenerate(const struct line_pnts *points, double thresh)
int G_debug(int, const char *,...) __attribute__((format(printf
Feature geometry info - coordinates.
double * y
Array of Y coordinates.
double * x
Array of X coordinates.
int n_points
Number of points.