GEOS 3.9.1
Position.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions 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 * Last port: geom/Position.java rev. 1.4 (JTS-1.10)
17 *
18 **********************************************************************/
19
20
21#ifndef GEOS_GEOM_POSITION_H
22#define GEOS_GEOM_POSITION_H
23
24#include <geos/export.h>
25#include <map>
26#include <vector>
27#include <string>
28
29#include <geos/inline.h>
30
31
32namespace geos {
33namespace geom { // geos.geom
34
39class GEOS_DLL Position {
40public:
41 enum {
46 ON = 0,
47
53
58 RIGHT
59 };
60
65 static int opposite(int position);
66};
67
68} // namespace geos.geom
69} // namespace geos
70
71#endif // ifndef GEOS_GEOM_POSITION_H
72
A Position indicates the position of a Location relative to a graph component (Node,...
Definition Position.h:39
@ LEFT
An indicator that a Location is to the left of a GraphComponent.
Definition Position.h:52
static int opposite(int position)
Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26