|
degate 0.1.1
|
00001 /* -*-c++-*- 00002 00003 This file is part of the IC reverse engineering tool degate. 00004 00005 Copyright 2008, 2009, 2010 by Martin Schobert 00006 00007 Degate is free software: you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation, either version 3 of the License, or 00010 any later version. 00011 00012 Degate is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with degate. If not, see <http://www.gnu.org/licenses/>. 00019 00020 */ 00021 00022 #ifndef __TANGENCYCHECK_H__ 00023 #define __TANGENCYCHECK_H__ 00024 00025 #include <degate.h> 00026 #include <globals.h> 00027 #include <Circle.h> 00028 #include <Line.h> 00029 #include <Rectangle.h> 00030 #include <PlacedLogicModelObject.h> 00031 00032 namespace degate { 00033 00034 /** 00035 * Check if two objects are tangent. It is assumed that both 00036 * objects are on the same layer. 00037 * @return Returns whether the objects are touching each other. 00038 */ 00039 bool check_object_tangency(PlacedLogicModelObject_shptr o1, 00040 PlacedLogicModelObject_shptr o2); 00041 00042 00043 bool check_object_tangency(Circle_shptr o1, 00044 Circle_shptr o2); 00045 00046 00047 bool check_object_tangency(Line_shptr o1, 00048 Line_shptr o2); 00049 00050 bool check_object_tangency(Rectangle_shptr o1, 00051 Rectangle_shptr o2); 00052 00053 bool check_object_tangency(Circle_shptr o1, 00054 Line_shptr o2); 00055 00056 00057 bool check_object_tangency(Circle_shptr o1, 00058 Rectangle_shptr o2); 00059 00060 bool check_object_tangency(Line_shptr l, 00061 Rectangle_shptr r); 00062 00063 00064 00065 00066 00067 00068 } 00069 00070 #endif
1.7.4