GRASS 8 Programmer's Manual
8.6.0dev(2026)-55de52a352
Loading...
Searching...
No Matches
rst/interp_float/distance.c
Go to the documentation of this file.
1
/*-
2
* Written by H. Mitasova, I. Kosinovsky, D. Gerdes Fall 1993
3
* US Army Construction Engineering Research Lab
4
* SPDX-FileCopyrightText: 1993 H. Mitasova (University of Illinois)
5
* SPDX-FileCopyrightText: 1993 I. Kosinovsky (USA-CERL)
6
* SPDX-FileCopyrightText: 1993 D.Gerdes (USA-CERL)
7
* SPDX-FileCopyrightText: GRASS Development Team
8
* SPDX-License-Identifier: GPL-2.0-or-later
9
*
10
* modified by McCauley in August 1995
11
* modified by Mitasova in August 1995
12
*
13
*/
14
15
#include <
stdio.h
>
16
#include <math.h>
17
#include <
unistd.h
>
18
#include <
grass/gis.h
>
19
#include <grass/interpf.h>
20
21
double
IL_dist_square
(
double
*
pt1
,
double
*
pt2
,
int
dim)
22
{
23
int
i;
24
double
sum = 0, s;
25
26
for
(i = 0; i < dim; i++) {
27
s =
pt1
[i] -
pt2
[i];
28
sum += s * s;
29
}
30
return
sum;
31
}
AMI_STREAM
Definition
ami_stream.h:153
gis.h
IL_dist_square
double IL_dist_square(double *pt1, double *pt2, int dim)
Definition
rst/interp_float/distance.c:21
stdio.h
unistd.h
lib
rst
interp_float
distance.c
Generated on Thu Sep 10 2026 06:57:37 for GRASS 8 Programmer's Manual by
1.9.8