00001 /********************************************************************** 00002 * $Id: Octant.h 2229 2008-11-26 19:41:44Z pramsey $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2006 Refractions Research Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 **********************************************************************/ 00015 00016 #ifndef GEOS_NODING_OCTANT_H 00017 #define GEOS_NODING_OCTANT_H 00018 00019 #include <geos/inline.h> 00020 #include <geos/util.h> 00021 00022 // Forward declarations 00023 namespace geos { 00024 namespace geom { 00025 class Coordinate; 00026 } 00027 } 00028 00029 namespace geos { 00030 namespace noding { // geos.noding 00031 00048 class Octant { 00049 private: 00050 Octant() {} // Can't instanciate it 00051 public: 00052 00057 static int octant(double dx, double dy); 00058 00062 static int octant(const geom::Coordinate& p0, const geom::Coordinate& p1); 00063 00064 static int octant(const geom::Coordinate* p0, const geom::Coordinate* p1) 00065 { 00066 UNREFERENCED_PARAMETER(p0); 00067 return octant(*p0, *p1); 00068 } 00069 }; 00070 00071 00072 } // namespace geos.noding 00073 } // namespace geos 00074 00075 //#ifdef GEOS_INLINE 00076 //# include "geos/noding/Octant.inl" 00077 //#endif 00078 00079 #endif 00080 00081 /********************************************************************** 00082 * $Log$ 00083 * Revision 1.2 2006/03/24 09:52:41 strk 00084 * USE_INLINE => GEOS_INLINE 00085 * 00086 * Revision 1.1 2006/03/09 16:46:49 strk 00087 * geos::geom namespace definition, first pass at headers split 00088 * 00089 **********************************************************************/ 00090