1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-06-30 22:11:40 +03:00
fped/overlap.h

33 lines
782 B
C
Raw Normal View History

/*
* overlap.h - Test for overlaps
*
* Written 2009 by Werner Almesberger
* Copyright 2009 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef OVERLAP_H
#define OVERLAP_H
#include "inst.h"
/*
* "inside" returns 1 if "a" is completely enclosed by "b". If "a" == "b",
* that also counts as "a" being inside "b".
*/
int inside(const struct inst *a, const struct inst *b);
/*
* "overlap" returns 1 if "a" and "b" have at least one point in common.
*/
int overlap(const struct inst *a, const struct inst *b);
#endif /* !OVERLAP_H */