visualizations

Programmatic visualizations
git clone git://git.laack.co/visualizations.git
Log | Files | Refs | README

vert.h (257B)


      1 #ifndef VERT
      2 #define VERT
      3 
      4 typedef struct Vert {
      5     int x;
      6     int y;
      7     bool visited;
      8 
      9 } Vertex;
     10 Vertex gen_vertex();
     11 Vertex* gen_vertices(int vtCount);
     12 Vertex* choose_random(Vertex* vertices, int length);
     13 float vert_dist(Vertex* v1, Vertex* v2);
     14 #endif