GEOS 3.14.0dev
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#pragma once
22
23#include <geos/export.h>
24#include <map>
25#include <vector>
26#include <string>
27
28
29
30namespace geos {
31namespace geom { // geos.geom
32
37class GEOS_DLL Position {
38public:
39 enum {
44 ON = 0,
45
51
56 RIGHT
57 };
58
63 static int opposite(int position);
64};
65
66} // namespace geos.geom
67} // namespace geos
68
A Position indicates the position of a Location relative to a graph component (Node,...
Definition Position.h:37
@ LEFT
An indicator that a Location is to the left of a GraphComponent.
Definition Position.h:50
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 geos.h:39