GEOS 3.3.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

Octant.h
1 /**********************************************************************
2 * $Id: Octant.h 2757 2009-12-01 15:39:41Z mloskot $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16 #ifndef GEOS_NODING_OCTANT_H
17 #define GEOS_NODING_OCTANT_H
18
19 #include <geos/export.h>
20
21 #include <geos/inline.h>
22 #include <geos/util.h>
23
24 // Forward declarations
25 namespace geos {
26 namespace geom {
27 class Coordinate;
28 }
29 }
30
31 namespace geos {
32 namespace noding { // geos.noding
33
50 class GEOS_DLL Octant {
51 private:
52 Octant() {} // Can't instanciate it
53 public:
54
59 static int octant(double dx, double dy);
60
64 static int octant(const geom::Coordinate& p0, const geom::Coordinate& p1);
65
66 static int octant(const geom::Coordinate* p0, const geom::Coordinate* p1)
67 {
68 ::geos::ignore_unused_variable_warning(p0);
69 return octant(*p0, *p1);
70 }
71 };
72
73
74 } // namespace geos.noding
75 } // namespace geos
76
77 //#ifdef GEOS_INLINE
78 //# include "geos/noding/Octant.inl"
79 //#endif
80
81 #endif
82
83 /**********************************************************************
84 * $Log$
85 * Revision 1.2 2006/03/24 09:52:41 strk
86 * USE_INLINE => GEOS_INLINE
87 *
88 * Revision 1.1 2006/03/09 16:46:49 strk
89 * geos::geom namespace definition, first pass at headers split
90 *
91 **********************************************************************/
92