nns.c  1.0.1
Nanowire Network simulator
wire.h
Go to the documentation of this file.
1 
12 #ifndef WIRE_H
13 #define WIRE_H
14 
15 #include "util/point.h"
16 
19 typedef struct
20 {
24  double length;
25 } wire;
26 
33 int wcmp(const void* e1, const void* e2);
34 
35 #endif /* WIRE_H */
Defines a structure representing a point in the Cartesian space, and a function to compute the square...
Structure representing a point in the cartesian space.
Definition: point.h:12
Stores the starting and ending positions of a wire together with its centroid position and total leng...
Definition: wire.h:20
point start_edge
Position of one of the edges of the wire.
Definition: wire.h:22
point end_edge
Position of one of the edges of the wire.
Definition: wire.h:23
double length
Total length of the wire.
Definition: wire.h:24
point centroid
Position of the centroid of the wire.
Definition: wire.h:21
int wcmp(const void *e1, const void *e2)
Compares two nanowires according to their length.
Definition: wire.c:3