shithub: asif

ref: f0aa2bfef6b39d26792d66be56565fca32d4a842
dir: /graph/graph.h/

View raw version
typedef struct Vertex Vertex;
typedef struct Vectangle Vectangle;
struct Vertex{
	int x;
	int y;
};
struct Vectangle{
	Vertex min;
	Vertex max;
};

Vertex	V(int, int);
Vectangle	V²(int, int, int, int);
Vectangle	toV²(Vertex, Vertex);
Vertex	ΔV(Vertex, Vertex);
Vertex	∑V(Vertex, Vertex);
int	V∩V²(Vertex, Vectangle);