00001 /********************************************************************** 00002 * $Id: Octant.h 2757 2009-12-01 15:39:41Z mloskot $ 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/export.h> 00020 00021 #include <geos/inline.h> 00022 #include <geos/util.h> 00023 00024 // Forward declarations 00025 namespace geos { 00026 namespace geom { 00027 class Coordinate; 00028 } 00029 } 00030 00031 namespace geos { 00032 namespace noding { // geos.noding 00033 00050 class GEOS_DLL Octant { 00051 private: 00052 Octant() {} // Can't instanciate it 00053 public: 00054 00059 static int octant(double dx, double dy); 00060 00064 static int octant(const geom::Coordinate& p0, const geom::Coordinate& p1); 00065 00066 static int octant(const geom::Coordinate* p0, const geom::Coordinate* p1) 00067 { 00068 ::geos::ignore_unused_variable_warning(p0); 00069 return octant(*p0, *p1); 00070 } 00071 }; 00072 00073 00074 } // namespace geos.noding 00075 } // namespace geos 00076 00077 //#ifdef GEOS_INLINE 00078 //# include "geos/noding/Octant.inl" 00079 //#endif 00080 00081 #endif 00082 00083 /********************************************************************** 00084 * $Log$ 00085 * Revision 1.2 2006/03/24 09:52:41 strk 00086 * USE_INLINE => GEOS_INLINE 00087 * 00088 * Revision 1.1 2006/03/09 16:46:49 strk 00089 * geos::geom namespace definition, first pass at headers split 00090 * 00091 **********************************************************************/ 00092