nns.c  1.0.1
Nanowire Network simulator
point.h
Go to the documentation of this file.
1 
7 #ifndef POINT_H
8 #define POINT_H
9 
11 typedef struct
12 {
13  double x;
14  double y;
15 } point;
16 
23 double squared_distance(const point a, const point b);
24 
25 #endif /* POINT_H */
double squared_distance(const point a, const point b)
Compute the point to point distance with the euclidean rule without performing the root....
Definition: point.c:5
Structure representing a point in the cartesian space.
Definition: point.h:12
double y
The position in the second dimension of the point.
Definition: point.h:14
double x
The position in the first dimension of the point.
Definition: point.h:13