1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-18 07:16:15 +02:00
fped/overlap.h
werner 8df866ab2f - the set of layers of a pad is now maintained in the instance, so that we can
make adjustments when removing layers provided by specialized pads
- gui_inst.c: moved gc construction from gui_draw_pad and gui_draw_rpad to
  shared pad_gc
- layer.h: new home of all definitions related to pads and layers
- layer.c: 
- overlap.c: functions to test for overlaps of pad shapes (in progress)



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5634 99fdad57-331a-0410-800a-d7fa5415bdb3
2009-09-13 09:58:30 +00:00

33 lines
782 B
C

/*
* 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 */