43 Points1->
z[0], Points2->
x[0],
44 Points2->
y[0], Points2->
z[0], with_z);
47 Points1->
x[0], Points1->
y[0], Points1->
z[0],
49 Points2->
z[Points2->
n_points - 1], with_z);
53 Points1->
z[Points1->
n_points - 1], Points2->
x[0], Points2->
y[0],
54 Points2->
z[0], with_z);
64 for (i = 0; i <
sizeof(distances) /
sizeof(
double); i++) {
65 if (distances[i] >= 0.0 && distances[i] < distances[*mindistidx])
69 G_debug(3,
"Vedit_get_min_distance(): dists=%f,%f,%f,%f", distances[0],
70 distances[1], distances[2], distances[3]);
72 return distances[*mindistidx];
int G_debug(int, const char *,...) __attribute__((format(printf
double Vect_points_distance(double, double, double, double, double, double, int)
Calculate distance of 2 points.
Feature geometry info - coordinates.
double * y
Array of Y coordinates.
double * x
Array of X coordinates.
int n_points
Number of points.
double * z
Array of Z coordinates.
double Vedit_get_min_distance(struct line_pnts *Points1, struct line_pnts *Points2, int with_z, int *mindistidx)
Calculate distances between two lines.