#ifndef __voronoi_h #define __voronoi_h typedef struct sbod { long double x,y; struct shrany *hrany; struct sbod *dalsi; } SBOD; typedef struct shrany { struct shrana *hrana; struct shrany *dalsi; } SHRANY; typedef struct sobal { SBOD *bod; struct sobal *dalsi; } SOBAL; typedef struct shrana { SBOD *bod1,*bod2; long double a,b,c; int prirustek; struct spbod *pbod1,*pbod2; struct shrana *dalsi; } SHRANA; typedef struct spbod { long double x,y; SHRANY *hrany; struct spbod *dalsi; } SPBOD; typedef struct { int x,y; } BOD; #define POCETBODU 100 #define VektorovySoucin(x1,y1,x2,y2,x3,y3) (((x2)-(x1))*((y3)-(y1))-((x3)-(x1))*((y2)-(y1))) #endif