Octant.h

00001 /**********************************************************************
00002  * $Id: Octant.h 1820 2006-09-06 16:54:23Z 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/inline.h>
00020 
00021 // Forward declarations
00022 namespace geos {
00023         namespace geom {
00024                 class Coordinate;
00025         }
00026 }
00027 
00028 namespace geos {
00029 namespace noding { // geos.noding
00030 
00047 class Octant {
00048 private:
00049         Octant() {} // Can't instanciate it
00050 public:
00051 
00056         static int octant(double dx, double dy);
00057 
00061         static int octant(const geom::Coordinate& p0, const geom::Coordinate& p1);
00062         static int octant(const geom::Coordinate* p0, const geom::Coordinate* p1) {
00063                 return octant(*p1, *p1);
00064         }
00065 };
00066 
00067 
00068 } // namespace geos.noding
00069 } // namespace geos
00070 
00071 //#ifdef GEOS_INLINE
00072 //# include "geos/noding/Octant.inl"
00073 //#endif
00074 
00075 #endif
00076 
00077 /**********************************************************************
00078  * $Log$
00079  * Revision 1.2  2006/03/24 09:52:41  strk
00080  * USE_INLINE => GEOS_INLINE
00081  *
00082  * Revision 1.1  2006/03/09 16:46:49  strk
00083  * geos::geom namespace definition, first pass at headers split
00084  *
00085  **********************************************************************/
00086 

Generated on Fri Mar 27 04:52:54 2009 for GEOS by  doxygen 1.5.4