shithub: asif

ref: 24fe53736af84d40f9f513e08876a4e05278b9a4
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);