GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
* Copyright 1993, H. Mitasova (University of Illinois),
5
* I. Kosinovsky, (USA-CERL), and D.Gerdes (USA-CERL)
6
*
7
* modified by McCauley in August 1995
8
* modified by Mitasova in August 1995
9
*
10
*/
11
12
#include <
stdio.h
>
13
#include <math.h>
14
#include <
unistd.h
>
15
#include <
grass/gis.h
>
16
#include <grass/interpf.h>
17
18
double
IL_dist_square
(
double
*pt1,
double
*pt2,
int
dim)
19
{
20
int
i;
21
double
sum = 0, s;
22
23
for
(i = 0; i < dim; i++) {
24
s = pt1[i] - pt2[i];
25
sum += s * s;
26
}
27
return
sum;
28
}
gis.h
IL_dist_square
double IL_dist_square(double *pt1, double *pt2, int dim)
Definition:
rst/interp_float/distance.c:18
stdio.h
unistd.h
lib
rst
interp_float
distance.c
Generated on Thu Mar 20 2025 07:33:23 for GRASS GIS 8 Programmer's Manual by
1.9.1