GEOS 3.6.2
Octant.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#ifndef GEOS_NODING_OCTANT_H
16#define GEOS_NODING_OCTANT_H
17
18#include <geos/export.h>
19
20#include <geos/inline.h>
21#include <geos/util.h>
22
23// Forward declarations
24namespace geos {
25 namespace geom {
26 class Coordinate;
27 }
28}
29
30namespace geos {
31namespace noding { // geos.noding
32
49class GEOS_DLL Octant {
50private:
51 Octant() {} // Can't instanciate it
52public:
53
58 static int octant(double dx, double dy);
59
63 static int octant(const geom::Coordinate& p0, const geom::Coordinate& p1);
64
65 static int octant(const geom::Coordinate* p0, const geom::Coordinate* p1)
66 {
67 ::geos::ignore_unused_variable_warning(p0);
68 return octant(*p0, *p1);
69 }
70};
71
72
73} // namespace geos.noding
74} // namespace geos
75
76#endif
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
static int octant(const geom::Coordinate &p0, const geom::Coordinate &p1)
static int octant(double dx, double dy)
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition PreparedLineString.h:27
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25